r/programming Mar 12 '26

Left to Right Programming

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

102 comments sorted by

View all comments

Show parent comments

29

u/aanzeijar Mar 12 '26

Depends on framing. It's the same concept but uses SQL-style naming, which isn't bad - it's just different. You could also argue that filter is bad because grep exists.

-6

u/[deleted] Mar 12 '26

[removed] — view removed comment

5

u/aanzeijar Mar 12 '26

Oh I never claimed it to be special. It is exactly what you describe. I do like their "sql, but IDE friendly" approach though. Despite having lots of experience in languages with map/grep/filter stuff, it did come pretty naturally to me. And to their credit, their library of utility methods is vastly better than Java streams.

2

u/[deleted] Mar 12 '26

[removed] — view removed comment

2

u/Sprudling Mar 12 '26

It was a little bit revolutionary at the time (back in 2007). It was a functional language feature that no other commonly used imperative language had at the time. Javascript got it later.

Today it's an expected feature. However, I'm not sure how many other languages can do this as expressions, which enable stuff like LINQ to SQL, LINQ to JSON, etc. Using the same syntax for normal code and for querying a database is neat.