Y
Hacker News
new
|
ask
|
show
|
jobs
by
nyanpasu64
2180 days ago
This behaves differently for negative incomes, which are not prohibited by the i32 argument passed in (u32 cannot take on negative values).
2 comments
delta1
2179 days ago
Yeah I was just literally translating the previous code as an example, I didn't get the business rules specification
¯\_(ツ)_/¯
link
eximius
2179 days ago
Ranges support negatives, so thats nice. Though i32::MIN..=9 is at least slightly odd.
link
¯\_(ツ)_/¯