Hi, I am wondering why Java does not support constructs like this:
int i, j, k; // initialized with any values
if(i < j < k) {
// do something
}
Would it be so difficult (ambiguous) to evalute the expression i < j < k
? Let’s say with a left-to-right rule the compiler could first rewrite it as i < j && j < k
and then continue compilation.
Johannes
PS: Maybe it is supported in Mustang and I simply don’t know it yet.