r/node • • Nov 10 '20

Conditionally call a function with optional chaining.

Post image
345 Upvotes

126 comments sorted by

View all comments

Show parent comments

3

u/VolperCoding Nov 10 '20

Languages like C++ don't have optionals because they're low level-ish. Typescript is a superset of Javascript so if course it has to feature hull and undefined

6

u/notAnotherJSDev Nov 10 '20

Rust is also in that C++ class of languages and it also has optionals?

-6

u/VolperCoding Nov 10 '20

I never programmed in Rust so idk

5

u/notAnotherJSDev Nov 10 '20

I have, it does.