I started using const lot more in my AS3 code. My reasoning is that if the value does not change, then why make it var .
I heard through twitter that const values ββare optimized differently than vars . Because Twitter was short and sweet, details stayed here.
Does anyone have more info on the pro / cons of using var and const .
Let me start with the con statement: in Flash Builder values, const values ββare not displayed in the debugger. Values ββthat do not change do not seem to deserve attention in the debugger.
source share