Re:Parse, Don't Validate (2019)
by armchairhacker on Tuesday March 07, 2023 @08:45AM
(#35055230)
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.
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.