[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LUA Vs Javascript
- From: "troels knak-nielsen" <troelskn@...>
- Date: Sat, 28 Jun 2008 01:00:47 +0200
A couple of corrections:
On Fri, Jun 27, 2008 at 9:56 PM, Javier Guerra <javier@guerrag.com> wrote:
> differences:
> - OOP is just a little syntax sugar, there's no predefined inheritance style.
Neither is there in Javascript. They are both prototype-based languages.
On Fri, Jun 27, 2008 at 11:34 PM, Javier Guerra <javier@guerrag.com> wrote:
> JS doens't have lexical scoping, just two-level scopes. may i had the
> terminology wrong and it could be called 2-level lexical scope, while
> Lua is full block based lexical scoping.
Javascript has lexical scope. It doesn't have a package system though.
--
troels