Signed Integers Considered Stupid(blackhole12.blogspot.com)
submitted by
flyingkick(331) 3 months, 19 days ago
Signed integers have always bugged me. I've seen quite a bit of signed integer overuse in C#, but it is most egregious when dealing with C/C++ libraries that, for some reason, insist on using for(int i = 0; i < 5; ++i). Why would you ever write that? i cannot possibly be negative and for that matter shouldn't be negative, ever. Use for(unsigned int i = 0; i < 5; ++i), for crying out loud.
|category: C#
|Views: 7
tags:
C# another
Everyones tags:
Your Tags: