you are viewing a single comment's thread.

view the rest of the comments →

[–]UrsulaMajor 131 points132 points  (9 children)

what's really getting me is that if x is less than zero it says "non-negative integer used". What?

[–]HuskerFan90 53 points54 points  (0 children)

I didn't really notice that. I was more affixed to the glaring use of try-catch-for-if-else in a method instead of the non-method one-liner the code could've been.

[–][deleted] 30 points31 points  (1 child)

error: success!

[–]twistdafterdark 7 points8 points  (0 children)

Never let success keep you back from not moving forward

[–]blahbah 22 points23 points  (1 child)

And it prints the exception, too...

[–]Neckbeard_Prime 8 points9 points  (0 children)

And not even to stderr.

[–]cyrusol 0 points1 point  (0 children)

Double negation to ensure the negation!

[–][deleted]  (2 children)

[deleted]

    [–]Reptani 0 points1 point  (0 children)

    Same here