Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Stage 2? #76

Closed
williamluke4 opened this issue Dec 1, 2018 · 2 comments
Closed

Stage 2? #76

williamluke4 opened this issue Dec 1, 2018 · 2 comments

Comments

@williamluke4
Copy link

Shouldn't this proposal be at stage 2?

@ljharb
Copy link
Member

ljharb commented Dec 1, 2018

It is still at stage 1; it requires TC39 consensus to be stage 2.

The precise syntax must be resolved prior to stage 2, particularly because this proposal interacts with nullish coalescing and possibly other future proposals.

The champion has indicated that they will seek stage 2 in the March meeting.

@williamluke4
Copy link
Author

@ljharb Thank you for clearing that up

edas added a commit to cozy/cozy-libs that referenced this issue Feb 15, 2019
[Optional chaining](https://github.com/tc39/proposal-optional-chaining)
allows to chain potentially null components.

Instead of doing
```
if (window && window.location && window.location.protocol) {
  ssl = window.location.protocol
}
```
we could do
```
ssl = window?.location?.protocol
```

The spec is stage 1 only but [they seem to have reach consensus](tc39/proposal-optional-chaining#75 (comment))
and [the formal stage 2 decision should be in March](tc39/proposal-optional-chaining#76 (comment))

There should not be any compatibility break
edas added a commit to cozy/cozy-libs that referenced this issue Feb 18, 2019
[Optional chaining](https://github.com/tc39/proposal-optional-chaining)
allows to chain potentially null components.

Instead of doing
```
if (window && window.location && window.location.protocol) {
  ssl = window.location.protocol
}
```
we could do
```
ssl = window?.location?.protocol
```

The spec is stage 1 only but [they seem to have reach consensus](tc39/proposal-optional-chaining#75 (comment))
and [the formal stage 2 decision should be in March](tc39/proposal-optional-chaining#76 (comment))

There should not be any compatibility break
sendilkumarn pushed a commit to sendilkumarn/proposal-optional-chaining that referenced this issue Jun 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants