Re:Why don't more languages offer flow typing?
by AlphaSite on Monday April 04, 2022 @04:54PM
(#30911820)
I think swift combines sumtypes with flow typing in an interesting way, where if you use a guard statement it then propagates that information into future uses of the type. If I remember correctly Kotlin also does something similar.
Pattern matching and sum types help, but they solve different problems.
Pattern matching and sum types help, but they solve different problems.