|
|
|
|
|
by AlphaSite
1544 days ago
|
|
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. |
|