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

Optional Chaining (reach Stage 2) #83

Closed
nodkz opened this issue Mar 13, 2019 · 16 comments
Closed

Optional Chaining (reach Stage 2) #83

nodkz opened this issue Mar 13, 2019 · 16 comments

Comments

@nodkz
Copy link

nodkz commented Mar 13, 2019

@dustinsavery I hope that you don't forget your promise about Optional Chaining:

microsoft/TypeScript#30167 (comment)

I will be seeking Stage 2 for Optional Chaining at the next TC-39 meetup in March which, based on the outlook coming out of our November meetup, it should reach.

I will pray for Stage-2 😉

@dusave
Copy link
Member

dusave commented Mar 13, 2019

@nodkz Due to circumstances out of my control, I just found out a few days ago that I won't be able to make this meeting to seek advancement. Trust me when I say, no one is more disappointed than me.

@hax
Copy link
Member

hax commented Mar 14, 2019

@dustinsavery So maybe May?

@ljharb ljharb transferred this issue from tc39/agendas Mar 14, 2019
@DanielRosenwasser
Copy link
Member

Is there any way that I would be able to help or present at this meeting? If you need, you can ping me on Twitter or email me at myCapitalizedFirstName dot myCapitalizedLastName at microsoft dot com.

@ljharb
Copy link
Member

ljharb commented Mar 20, 2019

(Note that the deadline has now passed for proposals seeking advancement to be added to the agenda; a presentation would be great, but anyone would be able to block advancement solely on the basis of the deadline)

@jridgewell
Copy link
Member

👋 Dustin has contacted me to take over as champion for this proposal. I’m afraid I didn’t have time to prepare a presentation for this meeting, but I plan to go for stage advancement at the next (and will talk to anyone at this meeting).

@ericketts
Copy link

ericketts commented Apr 15, 2019

that is very very exciting to hear @jridgewell I look forward to hearing what progress is made -- this feature is one that I took for granted for a long time working in a .net shop, and boy has it (sometimes) gotten painful in JS world to accomplish the same! a big heartfelt "thank you" to all who have been involved with championing this addition! 🖤

edit: also what a beautiful thing to see 2 devs employed by microsoft and google tag teaming an issue, amazing how far we've come in a few relatively short decades.

@jrista
Copy link

jrista commented May 6, 2019

Really hoping for advancement to Stage 2 for this proposal. Of all the ones currently out there, this is by far the one I would use most frequently. ;)

Best of luck, guys!

@DespertaWeb
Copy link

Optional Chaining Operator should be a must in JS, it's just a TIMESAVER!

Go for it guys! 👍 🚀

@jackkoppa
Copy link

Awesome to see it scheduled, @jridgewell! Best of luck 🤞
https://github.com/tc39/agendas/blob/master/2019/06.md#agenda-items

@Mouvedia
Copy link

Mouvedia commented May 20, 2019

What's being presented is not consistent—as explained many times already in other issues—hence it shouldn't reach stage 2. The only thing agreed upon by the majority is ?. and sadly/obviously most users reckon it's not enough: the bracket pendant must be introduced at the same time.

I understand that not everyone has the time and dedication so follow all the issues.
Therefor I propose to have all the obvious CONs of the current proposal to be listed in the README so that people can make up their mind easily.

@jrista
Copy link

jrista commented Jun 3, 2019

@Mouvedia What other option could we possibly go with that would meet all the necessary criteria, including compiler performance, that would be consistent? Hasn't this been hashed into oblivion already? When your options are limited, consistent or not, you pick the least of all evils...no?

@ljharb
Copy link
Member

ljharb commented Jun 3, 2019

@jrista don't forget tho, that the least of all evils is often "do nothing".

@jrista
Copy link

jrista commented Jun 3, 2019

Perhaps...not sure that is the case here. I think the proposed ?. is still significantly better and far less tedious than chaining falsy checks (sometimes numerous properties deep, or even more complex solutions to the problem) like we have to do now, which would be the "do nothing" option. The do nothing option has existing syntactical issues as well...

@samhh
Copy link

samhh commented Jun 5, 2019

I believe someone on the TypeScript team says this has reached stage 2 today, can anyone else confirm?

@ljharb
Copy link
Member

ljharb commented Jun 5, 2019

You can check the closest thing there is to a source of truth: tc39/proposals@effb785

@claudepache
Copy link
Collaborator

This issue is now resolved; see the tc39/proposals@effb785 and PR #87.

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