You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The only problem is wanting to land the new "wavy-dot" eventual send syntax (currently stage1) in Babel.
Describe the solution you'd like
Add and implement an ["eventualSend"] parser option.
babel-plugin-syntax-eventual-send and babel-plugin-proposal-eventual-send would be the next steps.
Describe alternatives you've considered
I had a quick hack to get this working (without a clean factoring) in #10115. This current proposal is to implement it the right way according to Babel conventions.
Enabling babel-plugin-syntax-eventual-send will enable the "eventualSend" parser plugin. That will emit new nodes in alignment with the proposed syntax:
Secondly, a new babel-plugin-proposal-eventual-send will actually implement EventualCallExpression|EventualMemberExpression in terms of HandledPromise static methods, including the needed pipelining semantics of optimising a member followed by call as a "method", and rewriting ExpressionStatement expressions whose value is discarded as "send-only" methods.
Hey @michaelfig! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite."
Feature Request
Is your feature request related to a problem? Please describe.
The only problem is wanting to land the new "wavy-dot" eventual send syntax (currently stage1) in Babel.
Describe the solution you'd like
Add and implement an
["eventualSend"]
parser option.babel-plugin-syntax-eventual-send
andbabel-plugin-proposal-eventual-send
would be the next steps.Describe alternatives you've considered
I had a quick hack to get this working (without a clean factoring) in #10115. This current proposal is to implement it the right way according to Babel conventions.
Teachability, Documentation, Adoption, Migration Strategy
Enabling
babel-plugin-syntax-eventual-send
will enable the"eventualSend"
parser plugin. That will emit new nodes in alignment with the proposed syntax:Secondly, a new
babel-plugin-proposal-eventual-send
will actually implementEventualCallExpression|EventualMemberExpression
in terms of HandledPromise static methods, including the needed pipelining semantics of optimising a member followed by call as a "method", and rewritingExpressionStatement
expressions whose value is discarded as "send-only" methods.Shout out to: @erights, @FUDCo, @kriskowal.
I'd appreciate feedback from: @loganfsmyth, @jridgewell
The text was updated successfully, but these errors were encountered: