DEV Community

Discussion on: We don't need a ternary operator

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y

I had an optional type, which is what these operations were based on. Optional was an essential part of the language, as nothing was allowed to not contain a value otherwise: all defaults were defined, and there weren't null pointers.