Re:Black – Uncompromising Python code formatter
by JoBrad on Friday May 17, 2019 @07:07PM
(#19944444)
Haven't had the chance to use Python much lately, and immediately thought of how much JS/TS could benefit from comprehensions like this:
[ Parent
| on HN ]
Re:Black – Uncompromising Python code formatter
by auscompgeek on Saturday May 18, 2019 @01:10AM
(#19945788)
There was a proposal a few years ago to add array comprehensions to the language, but it was ultimately rejected in favour of using .map/.filter instead.
Not sure what came about of object comprehensions though.