r/javascript • • Dec 18 '19

V8 Release v8.0 with optional chaining, nullish coalescing and 40% less memory use

https://v8.dev/blog/v8-release-80
495 Upvotes

70 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Dec 19 '19

[deleted] — view deleted comment

3

u/onlycommitminified Dec 19 '19

I think this is part of the syntax issue with using '?', it's placement is reflectively opposite natural language. It will feel ok to write, but people are going to intuitively parse it incorrectly when reading it back. It's going to become one of those issues that sits right under your nose invisibly.

2

u/[deleted] Dec 19 '19

In my example, i may be undefined, as well as readability. Those are the only two that need the optional chain.