Great article. However, I will say if you want first party support for unions it’s likely better to use a language that has unions like TypeScript.
I'd say that multiple reasons need to be evaluated before choosing one language or another :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.