kevinmost
02/01/2018, 1:50 PM[action] for [variable] in [collection]
is more readable than [collection].map { [variable] -> [action] }
. The latter reads left to right perfectly. For the former, you need to read the whole thing to get context on any of it. And it requires special syntaxgildor
02/01/2018, 2:06 PMjkbbwr
02/01/2018, 2:11 PMkevinmost
02/01/2018, 3:06 PMmap
might be simpler than adding an entirely new syntax to the language for comprehensionskevinmost
02/01/2018, 3:07 PMfoo.filter { ... }.map { ... }
dalexander
02/01/2018, 3:28 PMcedric
02/01/2018, 8:41 PM