Re:The Logical Disaster of Null
by AnimalMuppet on Thursday May 10, 2018 @12:37PM
(#17040467)
I've seen this come up a couple of times in this discussion, so ELI5: What is "type flowing"?
[ Parent
| on HN ]
Flow 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
Re:The Logical Disaster of Null
by AnimalMuppet on Thursday May 10, 2018 @12:58PM
(#17040670)
Thanks!