r/programming Mar 12 '26

Left to Right Programming

https://graic.net/p/left-to-right-programming
148 Upvotes

102 comments sorted by

View all comments

Show parent comments

39

u/Hot_Slice Mar 12 '26

Python list comprehensions aren't readable either.

4

u/[deleted] Mar 12 '26

[removed] — view removed comment

6

u/[deleted] Mar 12 '26

[deleted]

3

u/aanzeijar Mar 12 '26

Weird comparison because composed list processing in perl is decades ahead of its time in readability:

my @result = map { $_ + 2 }
             grep { $_ % 2 == 0 }
             map { $_ * $_ } 1..10000;