Intent to Implement: JavaScript Optional Chaining

173 views
Skip to first unread message

Gus Caplan

unread,
Aug 6, 2019, 6:17:47 PM8/6/19
to v8-u...@googlegroups.com, blin...@chromium.org
Contact emails
m...@gus.host

Explainer
https://docs.google.com/document/d/1k7WuOEU6Bi7WwL5sHFLthxS7_jkG3ao3NsbFJ5DNwtQ/edit
https://github.com/tc39/proposal-optional-chaining


Design docs/spec
Specification: https://tc39.es/proposal-optional-chaining

https://docs.google.com/document/d/1k7WuOEU6Bi7WwL5sHFLthxS7_jkG3ao3NsbFJ5DNwtQ/edit

TAG review


Summary
Optional Chaining is a new feature in JavaScript which allows safe
access of properties from possibly-nullish objects, and safe calls to
possibly-nullish functions.

Motivation
Optional Chaining reached Stage 3 at the July 2019 TC39 meeting.

Risks
Interoperability and Compatibility
No risk.

Firefox: Public support (https://bugzilla.mozilla.org/show_bug.cgi?id=1566143)
Edge: No public signals
Safari: In development (https://bugs.webkit.org/show_bug.cgi?id=200199)
Web developers: Strongly positive

Will this feature be supported on all six Blink platforms (Windows, Mac, Linux,
Chrome OS, Android, and Android WebView)?
Yes

Is this feature fully tested by test262?
No


Link to entry on the Chrome Platform Status
https://www.chromestatus.com/feature/5748330720133120

Boris Zbarsky

unread,
Aug 6, 2019, 7:56:42 PM8/6/19
to v8-u...@googlegroups.com, Gus Caplan, blin...@chromium.org
On 8/6/19 5:55 PM, Gus Caplan wrote:
> Firefox: Public support (https://bugzilla.mozilla.org/show_bug.cgi?id=1566143)

For what it's worth, there are no signals from Mozilla in that bug
report, as far as I can tell.

-Boris

PhistucK

unread,
Aug 7, 2019, 3:11:59 AM8/7/19
to Boris Zbarsky, v8-users, Gus Caplan, blink-dev
This is great, I am really looking forward to using this (disclaimer - I also advocated the feature a few years back).
It might ease code writing/reading almost as much as destructuring and arrow functions.

PhistucK


--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/81d281b9-4511-f409-b400-334622534d48%40mit.edu.

Gabriel Giannattasio

unread,
Aug 12, 2019, 12:32:20 PM8/12/19
to v8-u...@googlegroups.com, Boris Zbarsky, Gus Caplan, blink-dev
This is a great feature to add, looking forward to seeing it in production :)

--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/CABc02_LpY0whmD5XKQGgV6ts9K6Ot8wxLyKKnZcr-LAy%2BMB0yw%40mail.gmail.com.


--
- Gabriel

PhistucK

unread,
Sep 6, 2019, 12:45:17 PM9/6/19
to Gabriel Giannattasio, v8-users, Boris Zbarsky, Gus Caplan, blink-dev
Is this intentionally not an intent to implement and ship, by the way?

PhistucK


Reply all
Reply to author
Forward
0 new messages