Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nyanpasu64
· 6y ago · 0 comments
This behaves differently for negative incomes, which are not prohibited by the i32 argument passed in (u32 cannot take on negative values).
Comments
[–]
delta1
6y ago
Yeah I was just literally translating the previous code as an example, I didn't get the business rules specification
¯\_(ツ)_/¯
[–]
eximius
6y ago
Ranges support negatives, so thats nice. Though i32::MIN..=9 is at least slightly odd.