Article View: comp.lang.misc
Article #4561Stupid and careless errors (was Check the Arg Count)
From: Larry Cipriani
Date: Sat, 03 Jan 1987 01:32
Date: Sat, 03 Jan 1987 01:32
23 lines
1677 bytes
1677 bytes
In article <4900@mimsy.UUCP>, mangoe@mimsy.UUCP (Charley Wingate) writes:
>...It
>seems to me that there's every advantage in the world to having the computer
>catch stupid and careless errors wherever possible; I utterly fail to see
>the advantage in deliberately maintaining a syntactic confusion between
>mistakes and a "feature", especially when making the latter explicit makes
>it vastly more obvious what the code really does.
>
> CGW
I largely agree with this however consider that C has about 46
operators and 15 precedence levels. This complexity can lead to
subtle bugs. The reason these 'bugs' slip by cc are that they are
allowed in the language and *can be intentional*. The worse compiler
is one that complains about something that isn't wrong. Perhaps lint
will be changed - I'm trying to get it changed but until then you'll
have to write a separate program to find them (I already have). Sorry,
I can't give you a copy or tell you much more about it. If I get
something published on it, I'll talk some more about it.
--
Larry Cipriani AT&T Network Systems
cbosgd!{danews,cbsck}!lvc
Technical Details
Message-ID:
<369@danews.ATT.COM>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!clyde!cbatt!danews!lvcReferences:
<3214@bu-cs.BU.EDU> <4900@mimsy.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!clyde!cbatt!danews!lvc From: lvc@danews.ATT.COM (Larry Cipriani) Newsgroups: comp.lang.misc Subject: Stupid and careless errors (was Check the Arg Count) Message-ID: <369@danews.ATT.COM> Date: Fri, 2-Jan-87 20:32:51 EST Article-I.D.: danews.369 Posted: Fri Jan 2 20:32:51 1987 Date-Received: Sat, 3-Jan-87 02:49:44 EST References: <3214@bu-cs.BU.EDU> <4900@mimsy.UUCP> Organization: AT&T Medical Information Systems, Columbus, Oh Lines: 23