Hacker News new | past | comments | ask | show | jobs | submit login

Shouldn't that be

    foo?.bar?.baz ?? "default"



Sure. It's a before and after where the after is both easier to write and more correct.


People writing code like this should exchange these question marks for some wisdom ;)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: