News for hackers. Stuff that matters.
Re:TC39 Pipeline Operator – Hack vs. F# by tzs on Tuesday September 14, 2021 @07:27PM (#28532942)
I find |> annoying to type. How about making it so unary functions can be invoked like this?

  arg function_name
Then instead of

  arg |> func1 |> func2 |> func3
you could simply write

  arg func1 func2 func3
It might get a bit ugly when used with arrow functions instead of named functions, and there might need to be a special case when arg is a function, but if those problems could be handled not too unreasonably this seems a fine approach for a programming language.

There are no comments on this comment yet.