Prototype OO
Diez B. Roggisch
deets at nospam.web.de
Thu Apr 3 04:39:34 EDT 2008
> And I say "syntax should be the same". These are only opinions, so
> forgive me for wasting your time.
You mean like in JS?
function foo(args) {}
foo = function(args) {}
Somehow the JS-designers also made a compromise to allow to create
unnamed and named functions. Could it be that it make *sense* to
sacrifice simplicity and orthogonality here, so that different usage
scenarios get to be written concisely?
Start coding in python. And enjoy it. Is it perfect? Heck no! But it
sure is fun enough to deal with the occasional wart.
Diez
More information about the Python-list
mailing list