Re: [Hampshire] Code style

Inizio della pagina

Reply to this message
Autore: Simon Reap
Data:  
To: Hampshire LUG Discussion List
Oggetto: Re: [Hampshire] Code style
Hugo Mills wrote:
> On Mon, Jun 08, 2009 at 03:09:49PM +0100, Vic wrote:
>
>> #define min(a, b) ((a<b) ? a : b )
>>
>    I'll live with this use. Concise, readable (once), and above all
> hidden from view at the point of use.

>


Until someone does
                     min (a++, b++)
and wonders why it doesn't work (and yes, I *have* seen that happen)


Simon