2 ms·
I wish more languages had some equivalent of records, tagged unions, and pattern matching. Don't have to be 100% immutable or perfect ADTs: see Rust, Swift, Ko
by armchairhacker 4y ago
I wish more languages had some equivalent of records, tagged unions, and pattern matching.
Don't have to be 100% immutable or perfect ADTs: see Rust, Swift, Kotlin. Even TypeScript can do this, albeit it's uglier with untagged unions and flow typing instead of pattern matching.