Currently it's still required to annotate goog-define constants with ^boolean to allow the Closure compiler to safely remove dead branches. The macro could emit the var with ^boolean metadata to make this unnecessary.
In general it would be nice to have similar annotations for the already defined constants like goog.DEBUG although I'm not sure how/if that's possible.
Currently it's still required to annotate
goog-define
constants with^boolean
to allow the Closure compiler to safely remove dead branches. The macro could emit the var with^boolean
metadata to make this unnecessary.In general it would be nice to have similar annotations for the already defined constants like
goog.DEBUG
although I'm not sure how/if that's possible.