ceylon/ceylon-compiler — Issue #350: Turn attributes with constant initializers into statics
Author: quintesse
Created: 2012-01-27 15:30:58+00:00
State: open
Labels: optimisation

If the typechecker could reason that initializer expressions for attributes are constant, like this:

Integer i = 1;
Integer n = 5 * 1000 + i;

we could turn them into static fields with static accessor methods which saves memory and initialization time.