lua-users home
lua-l archive

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


--- Joshua Jensen <jjensen@workspacewhiz.com> wrote:
> Except it's the biggest hangup when trying to convert C and Javascript
> users... "Why do tables use braces and functions do not?" ... and
> they're the main people I always try and get to use Lua.

Yeah, I prefer JavaScript's C-derived syntax, too, but if Lua used curly braces you would start
expecting C-like operators too (++, --, +=, *=, <<, >>, etc).  Lua stays leaner by omitting these,
and it's probably best to not having a syntax that constantly reminds of their absence.

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com