Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
marcosdumay
6y ago
0 comments
Save
Share
> But chaining the == with other operators feels weird
Chaining anything with `is` feels weird to me, but:
foo >= bar == baz >= fooo
fells perfectly ok.
0 comments
3 comments · 1 top-level
top
newest
oldest
throwaway_pdp09
6y ago
· 2 in thread
(please ignore, I'm an idiot) (deleted)
baq
6y ago
Not OP but I’d expect no precedence as I expect this to parse into a series of number comparisons and-chained.
throwaway_pdp09
6y ago
Damn, you're right, was being stupid. Duh.
j
/
k
navigate · click thread line to collapse