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
{{ message }}
This repository was archived by the owner on May 19, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on May 19, 2018. It is now read-only.
Thanks for looping me in! I wanted to let everyone know that I'm over in the BabelJS Slack if there are others that would like to discuss this feature further. I'm currently working with @bmeck on the Babel side of things.
Reacted by Aleksey Bobyr, Bitcollage, Alex, Florian Reuschel, maevic, octalmage, Tomas Šereikis, Jason Merino, mantou, J. Pratt-Delzenne and 28 more
Reacted by The web walker, Tanner Linsley, Collin Sauve and Mani Shooshtari
Reacted by Bitcollage, maevic, Jason Merino, Thomas Sileghem, Christian Silver, Sam Horton, Nathan Hagen, guijesuis, Leonard Koch, テンプテーション and 11 more
Reacted by Andy, The web walker, Dale Inverarity, Tanner Linsley, Collin Sauve, Titus Woo and Mani Shooshtari
The commit adding the feature to the lightscript parser (a fork of babylon). It uses poor naming ("elvis operator" isn't accurate) and isn't backwards-compatible; a different approach would be necessary.
My version doesn't currently support assignments or delete, though I may add those soon.
For now I'll wait for a bit to hear back from @kristofdegrave and the babel team as to whether the spec seems stable.
Reacted by Alex, Dima Khadorkin, Sam Horton, Rodrigo Nascimento, Nicky Hajal, Eric Miller and Michael Taylor
Can't wait to see this on ES. Inspite of it being yet at stage-1, it is the only thing that I've always wanted to be part of EcmaScript since I stopped using CoffeeScript. I wish I had spare time to implement it.
Reacted by Nicky Hajal, Sam Horton, Alexander Gusman, Alexey Platov, Jean-Philippe Tissot, Seol Park, szabi, Jake Klingler, Chang Wang, 文宇祥 and 16 more
For context, at the TC39 meeting where this proposal was presented, there were a couple concerns raised about the scope of the proposal, one syntactic and one semantic. I've filed twoissues to discuss these issues. This is a Stage 1 feature and subject to change!
Reacted by Henry, Vaughan Rouesnel and cybai (Haku)
Reacted by Florian Reuschel, Maxim Vorobjov, Mistereo, Nicholas R, Vaughan Rouesnel, c4605, Sven Sauleau, The web walker, Kav Singh, David Yahalomi and 8 more
Activity
gisenberg commentedon Jan 30, 2017
Thanks for looping me in! I wanted to let everyone know that I'm over in the BabelJS Slack if there are others that would like to discuss this feature further. I'm currently working with @bmeck on the Babel side of things.
kristofdegrave commentedon Feb 11, 2017
I'm currently werking on An PR for this
babel#328 babel#205 ?. as nullPropagation. For now it only works for …
sunnylqm commentedon Mar 14, 2017
Any news? @kristofdegrave
rattrayalex commentedon Mar 16, 2017
As discussed in the babel slack, I'm also interested in contributing to this once the spec is a bit more settled.
I previously implemented a
?.feature for LightScript (a fork/superset of JS built on babylon/babel). In case it helps anyone, here is:My version doesn't currently support assignments or delete, though I may add those soon.
For now I'll wait for a bit to hear back from @kristofdegrave and the babel team as to whether the spec seems stable.
cusspvz commentedon Mar 31, 2017
Can't wait to see this on ES. Inspite of it being yet at
stage-1, it is the only thing that I've always wanted to be part of EcmaScript since I stopped using CoffeeScript. I wish I had spare time to implement it.thomaschaaf commentedon May 24, 2017
@gisenberg @kristofdegrave is this still something you are working on? Do you need help?
[-]Null Propagation Operator: Stage-1[/-][+]Null Propagation Operator: Stage 1[/+]xtuc commentedon May 26, 2017
Based on @kristofdegrave's work, I can make a PR with this master...xtuc:feat-optional-chaining
I have the Babel part as well babel/babel@7.0...xtuc:feat-optionnal-chaining
I currently only support the basic syntax:
gisenberg commentedon May 26, 2017
@thomaschaaf This is still underway. If you're interested in helping, https://github.com/gisenberg/proposal-optional-chaining is tracking the remaining work. I'm also in the BabelJS Slack if you want to reach out directly.
hzoo commentedon May 27, 2017
@xtuc, @kristofdegrave Let's start the PR so we can make a review by us + Gabe?
[-]Null Propagation Operator: Stage 1[/-][+]Optional Chaining: Stage 1[/+]hzoo commentedon Jun 5, 2017
The babylon PR is merged (#545)
Please help review/test the transform PR babel/babel#5813
littledan commentedon Jun 6, 2017
For context, at the TC39 meeting where this proposal was presented, there were a couple concerns raised about the scope of the proposal, one syntactic and one semantic. I've filed two issues to discuss these issues. This is a Stage 1 feature and subject to change!
sunnylqm commentedon Jul 4, 2017
https://github.com/babel/babel/tree/7.0/packages/babel-plugin-transform-optional-chaining