lua-users home
lua-l archive

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

On 5/23/06, Jerome Vuarand <> wrote:
I think the real problem is that x<y<z is using a ternary operator.

depends on how you define the arity of operators...

e.g. the fortress research language from sun labs allows certain
relational operators to be "chained" together, so (x<y<=z) in fortress
means ((x<y) and (y<=z)), where < and <= are still considered binary
relational operators (and y is only evaluated once etc.)

but fortress targets high performance scientific and engineering
applications, so supporting natural mathematical notation is one of
its goals (see )