lua-users home
lua-l archive

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


HyperHacker <hyperhacker@gmail.com> writes:
> Wouldn't a more Lua-like approach be to use a keyword "lambda" instead
> of a symbol?

There's nothing "more Lua like" about that -- after all, Lua uses non-keyword
operators too (it's not lisp).

The point is that such decision should be taken judiciously, with an eye
towards expected usage.

In this case, the point seems to be reducing the size and visual impact
of small lambdas, which suggests not using a keyword would be better.

Also, of course, there's always a lot of reluctance to add a new keyword
to the language; using currently illegal syntax is safer.

-miles

-- 
Absurdity, n. A statement or belief manifestly inconsistent with one's own
opinion.