Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dragonwriter
· 1y ago · 0 comments
And... So? It seems you are saying Day_type + Integer is Integer, and Integer (in general) cannot safely be coerced into Day_type and... that’s logically correct?
Comments
[–]
MathMonkeyMan
1y ago
`Day_type + Day_type` is also defined, and it overflows. That's like normal integers, and unlike enums.