From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_40,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Xref: utzoo comp.lang.ada:3361 comp.lang.c:26483 Path: utzoo!attcan!uunet!mcsun!sunic!enea!sommar From: sommar@enea.se (Erland Sommarskog) Newsgroups: comp.lang.ada,comp.lang.c Subject: Re: problems/risks due to programming language Message-ID: <829@enea.se> Date: 2 Mar 90 10:57:50 GMT References: <5432@crdgw1.crd.ge.com) <8103@hubcap.clemson.edu) <10811@june.cs.washington.edu) <806@enea.se> <5479@ur-cc.UUCP> Organization: Enea Data AB, Sweden List-Id: Michael Sullivan (misu_ss@uhura.cc.rochester.edu) writes: >"Thou shalt put a break statement at the end of each case in a switch, even >unto the last in which it is not logically necessary." > >So what's the problem? The problem? Such rules such be enforced by the compiler, not the programmer. The more rules you into a language which the programmer is to obey without the compiler to verify, the more likely it is that casual errors slip in. And the compiler checks for me, the more I can concentrate on the essentials; trying to solve the real-world problem at hand. -- Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se