3 ms·
I should rest all this rip, but I can't help it: reference to multi-line lambdas in languages with Python-like syntax: http://cobra-language.com/trac/cobra/wiki
by nnq 14y ago
I should rest all this rip, but I can't help it: reference to multi-line lambdas in languages with Python-like syntax: http://cobra-language.com/trac/cobra/wiki/AnonMethod http://cobra-language.com/trac/cobra/wiki/AnonMethod, http://boo.codehaus.org/Closures http://boo.codehaus.org/Closures (yep, you're right, having multiple closures on a single line with offsite-rule syntax is "non-trivial" and no one solved this yet, but even one per line would be enough to make map and fold bearable, and ftr, I want to punch Guido or whoever else has a saying in language's design for not "stealing" this and adopting it into Python - I think there was a PEP along the lines that got killed and burried, can't find it now).
- berntb 14y ago>>I want to punch Guido or whoever else has a saying in language's design for not "stealing" this and adopting it into Python Please relax... no tool is perfect for all situations. It is always a trade off.