Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83 SMI; site ur-laser.uucp
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!rochester!ur-laser!tomk
From: tomk@ur-laser.uucp (Tom Kessler)
Newsgroups: net.lang.c
Subject: Re: C programming style
Message-ID: <303@ur-laser.uucp>
Date: Wed, 10-Jul-85 16:32:35 EDT
Article-I.D.: ur-laser.303
Posted: Wed Jul 10 16:32:35 1985
Date-Received: Fri, 12-Jul-85 03:30:09 EDT
References: <11434@brl-tgr.ARPA>
Organization: Lab for Laser Energetics, Univ. of Rochester
Lines: 17

>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++" could mean something else in another language.  But
>almost all high level languages (even APL) use some form of "i = i + 1"
>to increment a variable.  If I want to distinguish between incrementing
>and adding, then I would define a procedure such as "increment(i)",
>which can be immediately understood.

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.
-- 
--------------------------
		   Tom Kessler {allegra |seismo }!rochester!ur-laser!tomk
Laboratory for Laser Energetics               Phone: (716)- 275 - 5101
250 East River Road
Rochester, New York 14623