>-----Original Message----- >From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] >Sent: 15 February 2005 15:24 >To: Microcontroller discussion list - Public. >Subject: Re: [PIC] Bug in Microchip mcc18 std library? > > >Michael Rigby-Jones wrote: >> A HHL is only as good as the programmer using it. It's >quite possible >> to write completely unmaintainable garbage in Pascal just as you can >> in C or virtualy any language. > >True, but C enforces no discipline and makes it much more >likely. Really good programmers will write good code in any >language. However, most programmers are surprisingly sloppy. >It's always amazed my how 99% of all code is poorly written. > >Even good programmers make honest mistakes and typos. You >want the language such that most simple errors cause illegal >syntax, not silently substitute unexpected behaviour. I >wonder how many millions of dollars have been lost due to IF >(I = 1) being written when IF (I == 1) was really intended. >There is a very real and large cost to C that nobody seems to >notice anymore. That particular example wouldn't be silent however. Every compiler I have ever used will emit a warning if you try to do that, and when dealing with constant comparisons it can be eliminated by reversing the arguments e.g. if( 1 == I ). I understand your point, C gives you a nice long rope with which to hang yourself. That same rope is very handy when used properly though. Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist