lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On 09/06/2013 06:17 PM, Rena wrote:

I usually describe Lua as "like Javascript but sane".

They are in fact quite similar languages: they're both members of both the Algol and Lisp families, owing as much to Scheme as they do to C; they both use prototypal inheritance; they were both originally intended to be embedded in larger programs written in "systems" languages and have established major niches in that use, while still being useful as general-purpose languages. I think of JS as Lua's little brother, who at first appeared to have hopeless developmental delays but has recently undergone a major growth spurt.

It would be productive to take Crockford's list of the "awful parts" and "bad parts" of JS and compare the two languages on them (note that Crockford considers the presence of a continue statement to be one of the bad parts).