4 ms·
It won't, because there is no type narrowing in Gleam currently, the type system is also very different to something like Typescript, I just don't see what you
by __jonas 2y ago
It won't, because there is no type narrowing in Gleam currently, the type system is also very different to something like Typescript, I just don't see what you are describing as something that could realistically happen, but if you have an example I would be curious.
If the return type changes, the code using the function should definitely blow up until it's changed, don't think that's a bad thing.
- scns 2y ago> If the return type changes, the code using the function should definitely blow up until it's changed, don't think that's a bad thing. This. The big upside of algebraic data types. The function won't blow up though, the compiler shows you every piece of code where the added type needs to be handled and therefore ensures the program runs correctly.