DEV Community

Discussion on: Maybe just Nullable?

Collapse
 
iquardt profile image
Iven Marquardt • Edited

With explicit I was referring to untpyed Javascript. And pattern matching in JS is usually just an ordinary switch statement, which still makes the cases explicit.

I agree that tagged unions in general and my opinion specifically are not mainstream in JS/TS. Maybe the former will change in TS in the future..

Anyway, good post.