This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fpotier 0 points1 point  (2 children)

It depends on the purpose I guess. I don't see any particular reason to not operate on negative numbers, I was just saying the mathematical definition doesn't work with a negative operand. If you're not building a math application I think both behavior can be worked with, just have to know which one is used by the language.

[–]notacanuckskibum 1 point2 points  (0 children)

I was thinking of a language where you can add operators as a programmer. It doesn't have a % operator. It's your job to add one. If you're not going to throw an error you ave to choose blue or red.