Hacker News new | ask | show | jobs
by asterite 4026 days ago
A tiny observation here: we don't do "null pointer analysis". We do this kind of analysis for every type: if you invoke a method on a type and that method doesn't exist, you get a compile error. In the case of a type union, all types must respond to that method. "Nil | T" is just one particular type union, but you can also have "Int32 | String", etc.
1 comments

Thanks, that clears things up. I assumed that Nullpointer analysis was a special case.