This is a pretty nice doc and I agree/use most of these while doing as3
development. The use of ALL_CAPS constants makes sense to me but I am not
understanding what the purpose would be to not make the variable be the same
as the value.

For instance, this is what Adobe says and does from:

http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions

------
Constant names

Use all uppercase letters with underscores between words: OFF, DEFAULT_WIDTH
.

The words in the identifier must match the words in the constant value if it
is a String:

public static const FOO_BAR:String = "fooBar";

------

For me it makes more sense and helps consistency to make it:

public static const FOO_BAR:String = "FOO_BAR";


Anyone have a defense to Adobe's position?
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to