Proposal: Go 2: add chained interval comparisons · Issue #33694 · golang/go
Python comparisons can be chained like: if x < y <= z: ... This means: x is evaluated y is evaluated if x < y then z is evaluated, else skip master if body if y <= z then flow proceeds into master ...
GitHub