4 ms·
Care the elaborate? I'm not challenging you I'd just like to learn more. I recently transitioned from writing C++ to Typescript and probably haven't fully gro
by bentcorner 3y ago
Care the elaborate? I'm not challenging you I'd just like to learn more. I recently transitioned from writing C++ to Typescript and probably haven't fully grokked the TS way.
- patates 3y agoOh, I'm so sorry, I was being (or trying to be) sarcastic. However, if you are curious, here is a deep dive: https://basarat.gitbook.io/typescript/type-system/discriminated-unions https://basarat.gitbook.io/typescript/type-system/discrimina... I'm sincerely sorry for confusing you! Discriminated unions are nice but above I was exaggerating excessively to make a point :)
- bentcorner 3y agoHahaha no problem thanks for clarifying :)