|Non-declared Variables email@example.com (Avatar) (2006-10-16)|
|Re: Non-declared Variables firstname.lastname@example.org (Wolfram Fenske) (2006-10-17)|
|Re: Non-declared Variables email@example.com (2006-10-24)|
|RE: Non-declared Variables firstname.lastname@example.org (Quinn Tyler Jackson) (2006-10-26)|
|Re: Non-declared Variables Peter_Flass@Yahoo.com (Peter Flass) (2006-10-26)|
|Re: Non-declared Variables email@example.com (Pascal Bourguignon) (2006-10-28)|
|Re: Non-declared Variables ArarghMail610@Arargh.com (2006-10-28)|
|Re: Non-declared Variables firstname.lastname@example.org (Gene Wirchenko) (2007-01-28)|
|Date:||24 Oct 2006 17:34:39 -0400|
|Posted-Date:||24 Oct 2006 17:34:39 EDT|
I don't think that it is a good idea when language definition allows
you to use variables without declaration.
First of all, it leads to bugs which is rather hard to find.
You may do a type, and write, let's say instead of myvar, mywar, and
thus mywar most likely don't equal to myvar (probably it will be
initialized as zero) you already have a bug.
Secondly, when people used to declare variables they know what they are
doing. They know that if they need a one byte variable, or two, or four
byte variable, then they don't have to allocate space for a whole
string, as done in most of scripting languages starting from basic, and
still in perl, tcl, etc...
> I would like to hear people's opinions on the ability to use variables
> without declaring them in dynamic languages like Ruby.
Return to the
Search the comp.compilers archives again.