3 ms·
I could see this for something like foo == bar == baz But chaining the == with other operators feels weird, especially "is". Similarly foo >= bar <=
by epistasis 7y ago
I could see this for something like
foo == bar == baz
But chaining the == with other operators feels weird, especially "is". Similarly
foo >= bar <= baz
feels very off to me, and I'm not sure it should be chainable. If the intuition is to emulate human notation in math, there are many chained expressions that we would not allow to happen.
- marcosdumay 7y ago> But chaining the == with other operators feels weird Chaining anything with `is` feels weird to me, but: foo >= bar == baz >= fooo fells perfectly ok.
- throwaway_pdp09 7y ago(please ignore, I'm an idiot) (deleted)
- baq 7y agoNot OP but I’d expect no precedence as I expect this to parse into a series of number comparisons and-chained.
- throwaway_pdp09 7y agoDamn, you're right, was being stupid. Duh.