Oh, I'm 100% in agreement that piping a la Erlang/Elixir is the best.
I'm also 100% in agreement that the Java stream API is straight trash.
As far as the function composition being read inside out... I mean, you get used to it with most of the "mainstream" programming languages, so while it's definitely an annoyance, it's also an inherited (heh) annoyance moreso than a deliberate decision to have it be that way. Blame Algol for that, I guess.
You can usually use a proper compose function in languages with first-class lambdas (or easily write such a function) to create proper composite lambdas that aren't as unpleasant to read.
Basically, probably intentionally, Clojure as a library is licensed in a way that is incompatible with the GPL which legally muddles the water in an unpleasant way for software distribution.
Additionally, many including myself feel that Clojure should've just been a Common Lisp library (as effectively all of its features could be implemented that way) and that if one wants Java interop there's ABCL for that.
View all comments
Show parent comment
2
u/MrMonday11235 May 30 '22
Oh, I'm 100% in agreement that piping a la Erlang/Elixir is the best.
I'm also 100% in agreement that the Java stream API is straight trash.
As far as the function composition being read inside out... I mean, you get used to it with most of the "mainstream" programming languages, so while it's definitely an annoyance, it's also an inherited (heh) annoyance moreso than a deliberate decision to have it be that way. Blame Algol for that, I guess.