lua-users home
lua-l archive

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


On Fri Apr 04/25/14 at  7:57, Luiz Henrique de Figueiredo wrote:
> > I'd want ? in identifiers
> 
> You can always edit lctype.c to tell Lua that '?' is a letter.

I also would love to be able to write Lisp-style predicate functions (e.g.
`empty?`).

Now I'm just thinking out loud: `?` is not used for a ternary operation
à la C, but is there some other obvious problem that it would cause if
I did this? (Other than the obvious fact that I couldn't rely on any other
Lua interpreter without lctype.c edited to run my predicate functions.)

Thanks, P
-- 
We have not been faced with the need to satisfy someone else's
requirements, and for this freedom we are grateful.
    Dennis Ritchie and Ken Thompson, The UNIX Time-Sharing System