Different behaviors between `a == b == c` and `a <= b <= c`, and bug of string comparison
In vala, x == y == z
compares a boolean (x == y
) with z
(like C), while x <= y <= z
compares y
with z
and the expression is the same as x <= y && y <= z
(like Python), this may be a bug.
Also, there is another bug that 1 < 2 < 3
is ok while "1" < "2" < "3"
is not.
Edited by Zhou Qiankang