[Info-vax] Variable declarations, was: Re: improving EDT

Arne Vajhøj arne at vajhoej.dk
Sat Nov 19 19:55:48 EST 2016


On 11/19/2016 3:05 PM, Simon Clubley wrote:
> On 2016-11-18, David Froble <davef at tsoft-inc.com> wrote:
>> I've had many criticize me for not declaring all variables.  My response has
>> been "that's the compiler's job, why should I do such work?".  Nothing different
>> in having tools that attempt to do the grunt work for you.
>
> They are absolutely right to criticise you IMHO. Declaring variables
> is protection against some types of silly typing errors and in more
> modern traditional style languages this is a requirement (or you
> get an undeclared variable error during compilation).

True.

But there are also some extremely popular languages that do not have 
such requirement including PHP and JavaScript.

But I guess we can call them "non traditional".

:-)

Arne





More information about the Info-vax mailing list