Path: utzoo!utgpu!news-server.csri.toronto.edu!me!zougas Newsgroups: comp.lang.c From: zougas@me.utoronto.ca ("Athanasios(Tom) Zougas") Subject: Re: a style question Message-ID: <90Oct1.101609edt.18868@me.utoronto.ca> Organisation: U of Toronto, Dept. of Mechanical Engineering Organization: Mechanical Engineering, U of Toronto References: <7341@darkstar.ucsc.edu> <8660@ncar.ucar.edu> <1990Sep30.194448@IASTATE.EDU> Date: 1 Oct 90 14:16:24 GMT john@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@me.utoronto.ca || zougas@me.toronto.edu || ...!utai!me!zougas