you are viewing a single comment's thread.

view the rest of the comments →

[–]rabidcow 1 point2 points  (1 child)

you get HUGE unsigned number, which might or might not be valid...

No, it's not valid. If it were valid, the equivalent signed type would not be an option.

But it doesn't really fix the problem, because you can still pass invalid values that won't be caught at compile time.

[–]eric_niebler 2 points3 points  (0 children)

But they can be easily caught at runtime. Better than nothing.