3 ms·
If you’re willing to accept a little bit of extra syntax/ceremony, the `do` expressions proposal[1] is pretty much this (but it’s only stage 1 so who knows when
by eyelidlessness 4y ago
If you’re willing to accept a little bit of extra syntax/ceremony, the `do` expressions proposal[1] is pretty much this (but it’s only stage 1 so who knows when/if it’ll land).
1: https://github.com/tc39/proposal-do-expressions https://github.com/tc39/proposal-do-expressions
- 8f2ab37a-ed6c 4y agoNice! Wasn't aware of that at all.
- Yahivin 4y agoWe often add promising TC39 proposals into Civet so people can experiment without waiting. We've added https://github.com/tc39/proposal-pipeline-operator https://github.com/tc39/proposal-pipeline-operator, a variant of https://github.com/tc39/proposal-pattern-matching https://github.com/tc39/proposal-pattern-matching, a variant of https://github.com/tc39/proposal-string-dedent https://github.com/tc39/proposal-string-dedent and others. Since our goal is to be 99% compatible with ES we'll need to accommodate any proposals that become standard and pick up anything TC39 leaves on the table (rest parameters in any position, etc.)
- deleted 4y ago[deleted]