4 ms·
The pipe operator is extremely elegant and helpful in F# and (I presume) Elixir. I don't understand why the author considers it "malpractice".
by brianberns 11y ago
The pipe operator is extremely elegant and helpful in F# and (I presume) Elixir. I don't understand why the author considers it "malpractice".
- strmpnk 11y agoSince Erlang doesn't have a pipe operator it's hard to compare but I'd imagine using nested calls where a pipe might work is also considered inelegant in F#?
- EdwardDiego 11y agoIt's the "incredibly" that is tripping people up on that statement, I suspect. I personally love the pipe operator in F#, and use the Clojure threading macros in much the same way - it removes nesting, and it makes logic flow more obvious
- lostcolony 11y agoWell, the author says it helps 'mollify this malpractice', which I would take to mean it helps improve the readability of nesting functions. Mind you, the author says "incredibly", too, and I'm not sure how to take that.