This one bit me today
Joseph N. Hall
jnh at ecemwl.ncsu.edu
Tue Oct 10 02:47:51 AEST 1989
In article <750 at philmtl.philips.ca> ray at philmtl.philips.ca (Ray Dunn) writes:
>
>...
>No this *is* a flaw in the C grammer, because it does not take into account
>what a perfectly reasonably human is likely to do erroneously.
>
>To say that it is not the fault of 'C' which leaves this pitfall (and the
>others we know and love), for we mortals to fall into, is like blaming the
>driver in an accident caused by the car's gas and brake pedals being
>positioned too close.
>
>Obviously the driver is not operating the controls properly, but it is the
>design of the controls that makes it *easy* to make the mistake.
So, what? Are you going to sue AT&T for designing a language in which it
is too easy to make mistakes? Go back to ALGOL.
Personally, I don't consider any little "flaw" like this that rears its head
when programmers start deleting white space to be a matter of any
consequence. C isn't intuitively unambiguous from a lexical standpoint
(unless you consider "greedy analysis" intuitive, rather than arbitrary),
but I'll be damned if I'm willing to give up those wonderful two- and
three-character operators, at least not until ASCII includes more than
128 standard characters.
I certainly hope "Consumer Reports" never rates programming languages ...
v v sssss|| joseph hall || 4116 Brewster Drive
v v s s || jnh at ecemwl.ncsu.edu (Internet) || Raleigh, NC 27606
v sss || SP Software/CAD Tool Developer, Mac Hacker and Keyboardist
-----------|| Disclaimer: NCSU may not share my views, but is welcome to.
More information about the Comp.lang.c
mailing list