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

Yeah I was just literally translating the previous code as an example, I didn't get the business rules specification

¯\_(ツ)_/¯

Ranges support negatives, so thats nice. Though i32::MIN..=9 is at least slightly odd.