Re:Scala 3.0.0-M1
by scns on Wednesday November 04, 2020 @07:24AM
(#24988363)
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.
[ Parent
| on HN ]
Re:Scala 3.0.0-M1
by valenterry on Wednesday November 04, 2020 @09:35AM
(#24989371)
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"