4 ms·
I don't think that different equalities like "==" and "is" should be chained together; that is completely wrong. If it must be done for consistency in syntax/p
by kazinator 7y ago
I don't think that different equalities like "==" and "is" should be chained together; that is completely wrong.
If it must be done for consistency in syntax/parsing, then such combinations should be semantically diagnosed and rejected.
"x is y is z" -> good.
"x == y == z" -> good.
"x == y is z" -> WTF, error.
All the operators in the "relational cluster" should belong to the same equivalence family.