Y
Hacker News
new
|
ask
|
show
|
jobs
by
scns
2055 days ago
If you would call it pipe operator, like it's called in many (Elm, Elixir, F#, OCaml) other languages that have it, people would understand you faster IMHO. It is even discussed for inclusion into JavaScript.
1 comments
dwijnand
2055 days ago
https://www.scala-lang.org/api/current/scala/util/ChainingOp...
link
valenterry
2055 days ago
Nice I didn't know that! I still like to add |> on top of it.
"foo |> bar |> baz" just visually parses easier than "foo pipe bar pipe baz"
link