Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
reggieband
on Nov 6, 2019
|
parent
|
context
|
favorite
| on:
TypeScript 3.7
Shouldn't that be
foo?.bar?.baz ?? "default"
Dylan16807
on Nov 6, 2019
|
next
[–]
Sure. It's a before and after where the after is both easier to write and more correct.
machiaweliczny
on Nov 6, 2019
|
prev
[–]
People writing code like this should exchange these question marks for some wisdom ;)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: