Open mlanza opened 1 month ago
question symbol aready assiciated with optional, better than sharp - #
I don't know, maybe is percent(%
) could be, but #
looks better and don't uses as math opeator, that can confuse
const y = // x is omitted
|> f(#, 1)
|> g
|> h
Let's start with the standard F# pipeline as implemented by Babel:
This gives you
a
wherex
, some value, is passed down the pipeline. Function composition syntax can be similarly achieved.Given a basic pipeline syntax, one drops the initial input argument and, conveniently, ends up with a composed function. This makes sense given that function composition and pipelines are so closely related.
There should be little reason, once the pipeline syntax is settled, that function composition syntax couldn't tag along.