News for hackers. Stuff that matters.
Re:Functional programming is not popular because it is weird... by thaumasiotes on Tuesday September 14, 2021 @05:39AM (#28522303)
Clojure has the -> macro:

https://clojuredocs.org/clojure.core/-%3E

It does the same thing, but it's much more awkward to use.

Re:Functional programming is not popular because it is weird... by eigenhombre on Tuesday September 14, 2021 @08:09AM (#28523468)
As a daily user of -> and ->>, I am curious what you find awkward about them.
Re:Functional programming is not popular because it is weird... by thaumasiotes on Tuesday September 14, 2021 @01:24PM (#28527903)
You have to plan to use them in advance. With a pipeline operator you can figure out the command you want at one stage and then tack on another part of the pipeline without needing to go back and alter the way you began the line.