Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 (Denver Mods 4/2/84) 6/24/83; site drutx.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!decvax!harpo!ihnp4!drutx!jas From: jas@drutx.UUCP (ShanklandJA) Newsgroups: net.lang.c Subject: Re: Strange C parses Message-ID: <207@drutx.UUCP> Date: Tue, 24-Apr-84 12:39:28 EST Article-I.D.: drutx.207 Posted: Tue Apr 24 12:39:28 1984 Date-Received: Thu, 26-Apr-84 01:14:44 EST References: <262@nmtvax.UUCP> <175@homxa.UUCP> Organization: AT&T Information Systems Laboratories, Denver Lines: 23 Two quick comments (no pun intended): First, C comments are handled by the preprocessor, not the lexical analyzer, at least by default. Second, I don't want to make excuses for C's little lexical liberties, but let's not forget that all the examples we've seen are pathological. Inserting spaces at appropriate places in expressions is part of writing clear code. How often have you seen stuff like: while ((*++c=*f)&&(d=='e'||d=='E')||dptr) ... I'm not saying that a programmer with even a little C experience can't understand the above code fragment; I'm saying it's easier on the eyes and mind to read: while ( ( *++c = *f ) && ( d == 'e' || d == 'E' ) || dptr ) ... Of course, all that white space wastes lots of disk space, but then, so do comments :-) Jim Shankland ..!ihnp4!druxy!jas