[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: It would be nice if I could do: "200502" <= a <="200601" instead of "200502" <= a and a <="200601"
- From: "Taj Khattra" <taj.khattra@...>
- Date: Tue, 23 May 2006 13:01:08 -0700
On 5/23/06, Jerome Vuarand <firstname.lastname@example.org> 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 http://research.sun.com/projects/plrg )