2 ms·
> Is anyone surprised by `(1 > 0) < 1`? This is presumably meant as a setup for the fact that the result of `1 > 0 < 1` differs from the result with parenthese
by zahlman 1y ago
> Is anyone surprised by `(1 > 0) < 1`?
This is presumably meant as a setup for the fact that the result of `1 > 0 < 1` differs from the result with parentheses set up either way (because this is a chained comparison), and furthermore that such chained comparisons are legal even when they don't have the operators all "pointing" the same way (like in mathematical notation). And that operators like `in` and `is` are allowed to participate in this system on equal footing.