Signed word lengths and indexes

Justin Johansson no at spam.com
Tue Jun 15 06:52:45 PDT 2010


bearophile wrote:
> Steven Schveighoffer:
>> i is unsigned, and therefore can never be less than 0.  It's actually a  
>> clever way to do it that I've never thought of.
> 
> Clever code is bad. It must be minimized. In some rare situations it becomes useful, but its usage must be seen as a failure of the programmer, that was unable to write not-clever code that does the same things.
> 
> Bye,
> bearophile

I agree with bearophile's sentiments.

To my interpretation this means that at sometimes trying to be clever is 
actually stupid.  If I misinterpret those sentiments, please correct me.

Cheers
Justin



More information about the Digitalmars-d mailing list