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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fc52c633190162e0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed-0.progon.net!progon.net!news-zh.switch.ch!switch.ch!cernne03.cern.ch!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: why learn C? Date: Thu, 22 Mar 2007 08:54:59 +0100 Organization: CERN News Message-ID: References: <1172144043.746296.44680@m58g2000cwm.googlegroups.com> <1172161751.573558.24140@h3g2000cwc.googlegroups.com> <546qkhF1tr7dtU1@mid.individual.net> <5ZULh.48$YL5.40@newssvr29.news.prodigy.net> <460135a1@news.post.ch> NNTP-Posting-Host: abpc10883.cern.ch Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: cernne03.cern.ch 1174550099 9520 137.138.37.241 (22 Mar 2007 07:54:59 GMT) X-Complaints-To: news@@cern.ch NNTP-Posting-Date: Thu, 22 Mar 2007 07:54:59 +0000 (UTC) User-Agent: Thunderbird 1.5.0.10 (X11/20070305) In-Reply-To: <460135a1@news.post.ch> Xref: g2news1.google.com comp.lang.ada:14591 Date: 2007-03-22T08:54:59+01:00 List-Id: Martin Krischik wrote: >>> missing curly-braces, >> >> The last time I missed the curly brace the compiler told me that. > > The editor to fix deficiencies of the language - great! There is no word "editor" above. I said "compiler". > I guess he speaks of > > if (X=1) > A=2; > B=2; > > and > > if (X=1); > A=2; > > i.E. you forget the both - in which case no editor will help you. My editor will help me. I have a coding standard that prevents me from writing if (same with while, for, etc.) without any braces, so the above will not even go to the compilation stage. You can call it "fixing the defficiencies of the language", I call it "extending the static tool-chain which is already multiphase anyway". The final effect - which is really the only thing that matters - is that I *don't* have these problems. But I agree that the bare possibility (standard-wise) to do the above is a bad thing. -- Maciej Sobczak : http://www.msobczak.com/ Programming : http://www.msobczak.com/prog/