-----Original Message-----
From: Steve Onnis [mailto:[EMAIL PROTECTED]
Sent: Thursday, 3 April 2003 1:33 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: OT: Force variables to be declared

 
Can anyone explain to me the benifits of declaring a variable before it gets used arpart from if you are wanting to specify a value type faor the variable? eg number, struct ect
The biggest difference (that I can think of) is that your code will throw an error when it gets compiled, telling you that a variable wasn't declared, rather than just producing 'strange and unexpected' behaviour when it runs, that may not be obvious enough for even rigorous testing to notice.
 
Its an ease of maintenance thing.
 
Regards
 
Darren Tracey
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to