miniblog.

← Back to all posts
1
Idle thought: you can view a type system as just an abstract interpretation of code. `x = 1` can be abstracted as assuming that x is a number, then checking that numbers are appropriate wherever x is used.

1 Comment

Therefore a type checker simply validates a set of properties. The hard question here: what properties should the checker consider? Primitive types? Generics? Effects? Taint tracking? Pre/postconditions? What's the biggest bang for buck? Which is hardest to teach?