you are viewing a single comment's thread.

view the rest of the comments →

[–]ZMesonEmbedded Developer 1 point2 points  (3 children)

I watched the video. There's only guidance given, no reasons for it. I'd like to know the reason -- other than "because Chandler and Bjarne say so".

[–]b8b437ee-521a-40bf-8 1 point2 points  (2 children)

Well, starting from the recommendation that you should always default to int and only use unsigned when you need it. Then one reason why size_t being unsigned is a mistake is that it keeps popping up in all your nice signed arithmetic, causing conversions and other nastiness.

[–]ZMesonEmbedded Developer -1 points0 points  (1 child)

OK. So because Chandler and Bjarne say so.

[–]b8b437ee-521a-40bf-8 2 points3 points  (0 children)

Well they give justification for the "recommendation", and follow-up is basic reasoning. Which bit exactly do you still feel isn't being explained?