3 ms·
My argument was just that it has nothing to do with significant whitespace, which is what you were complaining about. Python could be changed to have non-signif
by spacemanaki 14y ago
My argument was just that it has nothing to do with significant whitespace, which is what you were complaining about. Python could be changed to have non-significant whitespace but retain its crippled lambda.
- berntb 14y ago>>My argument was just You made specific claims (regarding map recommendations in Python and that white space has nothing to do with one instruction lambdas). I asked for references. I assume you have none? Note that with significant white space a usable syntax for multi-instruction lambdas seems... non-trivial. It seems to me as an unusually stupid fan boy position. But a few well argued references, which you lack, would change my mind. I'm no troll. Edit: I might also note that your reference nng is a low-Karma account that argues that a cometing open source language to his love child is dead -- typical language war troll. Is that your only reference?
- nnq 14y agoI 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.