2 ms·
I've seen this come up a couple of times in this discussion, so ELI5: What is "type flowing"?
by AnimalMuppet 9y ago
I've seen this come up a couple of times in this discussion, so ELI5: What is "type flowing"?
- RX14 9y agoFlow typing is where the type of a variable changes based on control flow. Consider: x : Int32 | String if x.is_a? Int32 # typeof(x) == Int32 else # typeof(x) == String end
- AnimalMuppet 9y agoThanks!