Skip to content

Optional chaining now in stage 2 #7246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AndrewPrifer opened this issue Jun 19, 2019 · 4 comments
Closed

Optional chaining now in stage 2 #7246

AndrewPrifer opened this issue Jun 19, 2019 · 4 comments
Assignees

Comments

@AndrewPrifer
Copy link

This has been discussed in the past and I know that CRA consciously tries to only support stable features.

However the lack of optional chaining and null coalescing have long been one of the major pain points of JavaScript and the proposal recently hit stage 2. Would adding it to CRA be worth some consideration?

@mrmckeb
Copy link
Contributor

mrmckeb commented Jun 23, 2019

I would also love to get this in. @iansu and @ianschmitz, any objections to a PR for this one? It'll be tremendously powerful.

@andrewpeterprifer, this is a great macro that does something similar - https://www.npmjs.com/package/idx.macro

@mrmckeb mrmckeb self-assigned this Jun 23, 2019
@iansu
Copy link
Contributor

iansu commented Jun 23, 2019

We generally don't support stage 2 proposals as they still might change. We support some stage 3 proposals on a case by case basis. I personally love optional chaining but because it's still only stage 2 I don't think we should include it. I would be happy to add it once it reaches stage 3.

@ianschmitz
Copy link
Contributor

Agreed with @iansu. There's been a few notable examples of proposals changing quite drastically during the early stages. We should consider once it progresses further (I can't wait for this feature either!).

@mrmckeb
Copy link
Contributor

mrmckeb commented Jun 24, 2019

Agreed, let's close this off for now and keep a very close eye on it.

@andrewpeterprifer, I think it'll be a very easy sell once it gets to stage 3.

@mrmckeb mrmckeb closed this as completed Jun 24, 2019
@lock lock bot locked and limited conversation to collaborators Jun 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants