[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Documenting Lua gotchas for newbies.
- From: David Kastrup <dak@...>
- Date: Thu, 02 Dec 2010 10:31:40 +0100
Javier Guerra Giraldez <javier@guerrag.com> writes:
> 2010/12/1 Miles Bader <miles@gnu.org>:
>> as that's the
>> only way to make a local variable in 99% of programming languages
>
> many languages (especially beginner-friendly languages) assume local
> by default
I can't think of a single language that automatically declares variables
and assumes local by default.
Hint: C isn't one. In C, you need to declare every variable explicitly.
A local variable declaration is shorter than a global one, but you can't
omit it.
--
David Kastrup