> From: Eric S. Raymond [mailto:esr@thyrsus.com] > Skip Montanaro <skip@mojam.com>: > > Part of the motivation for list comprehensions as I recall is that we'd like > > to get away from such a strong reliance on map, reduce and filter. > In that case, the the lesson is that this is a bad road to go down. > The cost of moving away from a functional syntax, in this case, seems > to be dubious thickets of syntactic ugliness, > Mind you, I'm not a functional-language bigot; I'm not after turning Python > into LISP. Python has taught me the limits of the LISP approach to the world. > But I think the lesson from this particular debate is that it's not really > possible to do better than functional syntax for expressing the kinds of things > that want to go on the right side of a comprehension. Amen. I personally liked the Haskell syntax Jeremy posted earlier. It just makes sense visually. Bill
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4