3 ms·
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 |> f
by tzs 5y ago
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.