[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Quaternary Operator
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 22 Nov 2010 10:33:30 -0200
> > Actually, the re-use of the square brackets is my biggest objection to
> > a quaternany operator.
> > One of the best things about Lua is that it doesn't re-use symbols
> > much. Every other lanugage I'm aware of (except the Lisp family) does
> > this, and I believe it makes learning those languages more difficult.
> Well, although is not the same thing, Lua already uses '[' to strings
> '[[' and comments '--[['. So the Square Bracket already is a versatile
> symbol that could be used to express another idea.
I think he means "symbol = token", not "symbol = character".