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?
Then instead of
you could simply write
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.
[ Parent
| on HN ]
There are no comments on this comment yet.