logoalt Hacker News

unilynx • today at 3:15 PM • 1 reply • view on HN

I think he actually wants pipes. Instead of having to write:

  f3(f2(f1(some data)))
it would be nice to write

  some data |> f1 |> f2 |> f3
javascript has proposals for pipe operators because as soon as the simple .map /.filter/.reduce APIs don't suffice (ie. as soon as Promise.all is needed) the f3(f2(f1(data))) mess starts.

Replies

BeetleB • today at 3:35 PM

F# for the win!