4 ms·
I agree, it's one of the features we'll miss. There is a Stage 1 Null Propagation proposal: https://github.com/tc39/proposal-optional-chaining https://github.c
by sudowork 9y ago
I agree, it's one of the features we'll miss.
There is a Stage 1 Null Propagation proposal: https://github.com/tc39/proposal-optional-chaining https://github.com/tc39/proposal-optional-chaining
- evan_ 9y agoThere's a babel transform for this in case you want to start using it now, before browsers support it: https://github.com/babel/babel/tree/7.0/packages/babel-plugin-transform-optional-chaining https://github.com/babel/babel/tree/7.0/packages/babel-plugi...
- sudowork 9y agoThanks for the tip! Given some of the lessons we've learned with CoffeeScript, we'll most likely wait until proposals hit at minimum stage 3 before adopting them.
- btown 9y agoI've been waiting for this for years. Even considered forking Babel... it's been a long time coming :)
- smilekzs 9y agoI want to use TypeScript too, which will probably not adopt it until standardization.
- DanRosenwasser 9y agoWe definitely want to implement it! But many parts of that specification are still in flux, so like you said, we'd like to see the proposal stabilize first to avoid problems.