> unless you have a split personality.

Well... it might be you just provided the answer there. When working
on a project having the size of Flex, you work in a team.
Most probably a short function is indeed written by one person. But
what guarantees that nobody else will one day pass by and alter your
functions? In the case of shared work, defining that variable as a
const is a much quicker way of telling others that it's a
marker/whatever, than having to put comment out there, saying:
//next is a variable
//I pray to you and the lord to not change it
// because it just holds some value I need to remember
var pleaseDoNotChangeMe:Number = 3.1415...;
// End of Prayer ;)

--Johan


Reply via email to