2 ms·
>I claimed that it's not useful--it's optimizing for fewer keystrokes and not readability. it makes code much more readable produce_collection () |> C
by ernst_klim 9y ago
>I claimed that it's not useful--it's optimizing for fewer keystrokes and not readability.
it makes code much more readable
produce_collection ()
|> Col.filter pred
|> Col.map to_json
Only pure logic of the program remained, no garbage like intermediate vars, loops, etc.
>The Go version might be imperative, but at least it's clear.
Depends on how do you define clear. If huge manually optimized pile of imperative spagetty is clear, than yes. My definition of clear presumes sophisticated abstractions making hard things easier to reason about and comprehand, not a pile of hand-written state machines.
>Still, I've come across lots of unnecessarily abstract libraries before,
So many that you couldn't find an example?
- weberc2 9y agoLook, my remarks about OCaml were meant as constructive criticism, and you're plainly taking them personally. Frankly, such defensiveness doesn't make for very interesting conversation, so I'll duck out and leave you to the last word.