C programming style

Ron Natalie <ron> ron at brl-tgr.ARPA
Fri Jul 12 07:54:10 AEST 1985


> >Maybe "i++" is clearer to you, but do you only write programs for
> >yourself?  To me "i++" is the kind of statement typical of an APL-type
> >language, not a language that is supposed to be structured and easy to
> >understand.
> i don't know about you but my c compiler generates 3 fewer instructions
> and does all of the adding in registers when i user i++ instead of i = i + 1.
> -- 
Oh foo, it ain't all that hard to understand, especially for systems programmers
who were the target group the language was written for.  It's a very obvious
carry over from index mode operations that most assemblers use.

-Ron



More information about the Comp.lang.c mailing list