12 ms·
> you'd likely be surprised what the compiler can't > assume in almost any imperative language If you're going to use language like "almost any imperative l
by kibwen 11y ago
> you'd likely be surprised what the compiler can't
> assume in almost any imperative language
If you're going to use language like "almost any imperative language" to implicitly mean "almost any imperative language with predominantly dynamic semantics", then you shouldn't be surprised when someone well-versed in static languages comes along to correct such an overbroad interpretation. Reconsider who's being uncharitable here.
(And I say this as a Python developer who has actually needed to hoist a lookup out of a loop before.)