Re: Wish List Again
Aku writes:
> 1. thirdParam=command_line()[3]
> 2. writePos( -5 ) -- no return value
> 3. We can use undeclared variable, eg:
I would not completely rule out allowing 1 or 2 someday,
but I would rule out 3. Declaring your variables catches
subtle spelling mistakes that might take you hours of debug
time to notice. It also informs the reader of your code (i.e. you!)
what the possibilities are for that variable without having to
search for every place that the variable is used.
Languages that don't require you to declare
variables are not saving you any time in the long run (especially
if they don't complain about uninitialized variables, and quietly
"do you a favor" by setting them to 0 or "").
Regards,
Rob Craig
Rapid Deployment Software
http://www.RapidEuphoria.com
|
Not Categorized, Please Help
|
|