Flow sensitive type inference looks like exactly what I need.
But yes, I should really write up a more technical description some day.
But yes, I should really write up a more technical description some day.