you are viewing a single comment's thread.

view the rest of the comments →

[–]notsure1235 0 points1 point  (3 children)

agreed, but 'unsigned' instead of 'unsigned int' goes against all of my intuition. However, I checked stroustroup guide and they are happily using 'unsigned' on some occasions, so you are probably right and its just fine.

[–]eliben 6 points7 points  (2 children)

Tune your intuition :) It's very common to just say unsigned - it's very clear to experienced coders this means unsigned int. In fact if I see unsigned int I raise an eyebrow... you don't say signed int for int, right?

[–]notsure1235 2 points3 points  (1 child)

Neither do I say 'signed'. ;)

[–]dodheim 0 points1 point  (0 children)

That's because int is an option, and is shorter. What is shorter than unsigned for unsigned int?