[H-GEN] Which is better?

Trent Waddington s337240 at student.uq.edu.au
Tue Apr 27 18:35:06 EDT 2004


David Starkoff wrote:

>Shouldn't it be "--i" rather than "i--" so the previous value doesn't
>need to be (superfluously) kept around?
>
>  3.7: If I'm not using the value of the expression, should I use i++
>  or ++i to increment a variable?
>
>  ++i. Only losers and idiots use i++. [...]
>
>(I heart <http://www.plethora.net/~seebs/faqs/c-iaq.html>.)
>  
>

Don't believe everything you read (actually thinking about something 
before repeating it is also a good rule of thumb). 

Heard of dead code removal?

Trent






More information about the General mailing list