On Jan 8, 2004, at 11:25 PM, Taco Fleur wrote:
Let me rephrase that, when setting a local variable I do not scope it, when
calling it I do..


Why are you suggesting it is better to also scope a local variable when
setting?

Consistency. So it is clear from the code that you mean "variables.firstName" in every instance.


All you are saving is ten key strokes by omitting it on the "set" and you're likely to be using the variable more times than updating it so you're going to be typing "variables." quite a few times already.

It's more consistent to use the same syntax for every reference to the same variable - especially since for non-variables-scope names, you have to provide the scope qualifier in *both* places.

Sean A Corfield -- http://www.corfield.org/blog/

"Conform! Consume! Obey!"
-- Mr Snaffleburger : http://www.matazone.co.uk/theotherside.html


--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to