Re:A Case for a Native Runtime Compilation Language
by eigenspace on Friday April 30, 2021 @07:16PM
(#27000796)
That's because defining `a = 2` at the top level is a global constant, which can be changed at any time. Hence, the compiler can't optimize it out. If you tell the compiler it's a `const` though, it'll indeed do the optimization you were hoping for
[ Parent
| on HN ]
There are no comments on this comment yet.