|
|
|
|
|
by bpicolo
3743 days ago
|
|
List comprehensions are awesome. Not only that - python does them insanely beautifully. Clojure and ES6 are examples that I think aren't as readable, though equally powerful more or less. But in python they don't have any clunkiness. Simple, expressive. Love them. Nesting them can get ugly, but it's easy to avoid: Just use generator expressions and chain them. No real runtime overhead that way. |
|