Una said:Because quite you often use the modulo operator for the remainder.
The advantage of strongly typed languages is really that they give the compiler more information to do the correct optimizations.
If I write:
Code:
int test = 1 / 12;
and it give me 0, fair enough.
But if I write:
Code:
decimal test = 1 / 12;
and still get 0 then that is stupid. I should not also have to specify on the RHS that I want the answer in decimal. There is no excuse for that, it creates more work for the programmer (not to mention you have to KNOW to do that in the first place) when the compiler should has enough information for its optimisations on the LHS.
I think we shall have to agree to disagree here, I really dont like some things about this language, you have to work too hard for it and it makes things more complex and bloated in the process. But that is just me.
Last edited: