a style question
AthanasiosTom Zougas
zougas at me.utoronto.ca
Tue Oct 2 00:16:24 AEST 1990
john at IASTATE.EDU (Hascall John Paul) writes:
> What is the generally preferred usage? Or does it matter at all?
> ++x; or x++;
> I find myself using ++x (which in my mind I attribute to some long gone,
> brain-damaged optimizer from my past -- but I still persist). My `favorite'
> is:
> --x; and x++; (pre-decrement, post-increment!!!)
I prefer using ++x (or --x) to represent the fact that I'm _operating_ on 'x'.
And it makes sense to have unary operators lead their operands. N'est pas?
Tom.
--
I can be reached at...
zougas at me.utoronto.ca || zougas at me.toronto.edu || ...!utai!me!zougas
More information about the Comp.lang.c
mailing list