3 ms·
Ask HN: Why is functional code more readable than Python-style comprehensions?
Or at least, many Swift developers think so.
There is a lot of resistance to adding Python-style comprehensions to Swift.
- deleted 2y ago[deleted]
- overu589 2y agoPython comprehensions are a clever language shim. Functional code is an ode to scala/haskell/erlang in a way that any language should advantage.
- instig007 2y agoWhy would you want a special longer syntax for something that's universally accessible by map/filter/fold in all FP languages and a growing number of imperative ones?