Update soak implementation when optional chaining becomes stable
See original GitHub issueCurrently there’s a prototype implementation (--use-optional-chaining
) mapping ?.
syntax to JS optional chaining ( https://github.com/tc39/proposal-optional-chaining ), but upgrading Babel broke it because the latest spec does not allow soaked assignments, soaked new, and possibly other forms. Once the syntax and semantics settle down, it would be good to revisit. For now, I’m disabling the failing tests from the initial prototype.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Optional chaining (?.) - JavaScript - MDN Web Docs - Mozilla
The optional chaining ( ?. ) operator accesses an object's property or calls a function. If the object accessed or function called is ......
Read more >What is wrong with optional chaining and how to fix it - DEV ...
Optional chaining simplifies above and removes a lot of errors by saying that values considered as no value are only two - null...
Read more >Can't implement simple optional chaining - Stack Overflow
I am trying to implement a simple optional chaining state update. What I want is for the items to ONLY be changed IF...
Read more >Support optional chaining · Issue #4303 · facebook/flow - GitHub
Can be a simple case of optional chaining (optional static property access) implemented today under option's flag esproposal or experemental? I ...
Read more >Optional chaining '?.' - The Modern JavaScript Tutorial
The optional chaining ?. is a safe way to access nested object properties, even if an intermediate property doesn't exist.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I does not use soaked assignments and etc. in coffeescript, why I cannot
--use-optional-chaining
?In case this still matters to anyone,
--optional-chaining
is an option again as of a while back (#1969).