a < b < c would compare a bool with c in most languages, and mean a range test in others.
Auk rejects it rather than pick one reading; spell out what you mean.
Wrong#
fn between(a: int, b: int, c: int): bool = a < b < cFixed#
fn between(a: int, b: int, c: int): bool = a < b && b < cCommon causes#
- A math-style range check: write
lo <= x && x < hi. - Comparing three values for equality:
a == b && b == c.