-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function composition models pipelines #304
Comments
question symbol aready assiciated with optional, better than sharp - const y = // x is omitted
|> f(#, 1)
|> g
|> h |
The F# pipeline proposal was already rejected by TC39 several times. Mind you, the issue of a topic token is stuck because no one is able to find a reasonable proposal. We are down to two characters topic tokens and we're still stuck. One character tokens (all of: @#$%?) have already been hashed to bits (no pun intended here). Please do check if your topic token has already been discussed. As a developer interested in this proposal I also tried to contribute ideas to the topic token, but it seems some have found my proposals as if I were digging in the cemetery for corpses of old discussions :-). I'm telling you this to understand the experience you will receive. People are already tired of the discussion of picking a topic token, which effectively kills this proposal :-(. This being said I would recommend closing this issue, as there is nothing to be further discussed here. |
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.
The text was updated successfully, but these errors were encountered: