-
Notifications
You must be signed in to change notification settings - Fork 9
Ambiguity when integrated with partial application #3
Comments
Thanks for the comment. Yes, it’s true: if In fact, Hack pipes and the current PFA proposal also conflict with each other on a conceptual level. Both proposals address a similar problem—piping values into placeholders—in different ways. The current PFA proposal is built to integrate with F# pipes, rather than Hack pipes, in certain situations.
There are two possible solutions, which are not mutually exclusive:
Currently the plan is to have the Babel plugin support choosing which token to use as a plugin option, to allow experimentation with different topic-reference tokens like I’ll clarify this relationship between Hack pipes and PFA in the explainer later. |
Since partial application also uses
?
, it is unclear what the exampleshould be desugared into. Specifically there are three potential interpretations:
where the first
?
is topic reference, the second?
is placeholder.where the second
?
is topic reference, the first?
is placeholderwhere both
?
is topic reference.The text was updated successfully, but these errors were encountered: