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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1ba8c21ddfbe0b1e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-01-06 08:47:28 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!dziuxsolim.rutgers.edu!uunet!news.mathworks.com!hookup!news.moneng.mei.com!uwm.edu!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!epflnews!masg1.epfl.ch!gasser From: gasser@masg1.epfl.ch (Laurent Gasser) Newsgroups: comp.lang.ada Subject: Re: "Subtract C, add Ada" Date: 6 Jan 1995 16:47:28 GMT Organization: Ecole Polytechnique Federale de Lausanne Distribution: world Message-ID: <3ejs70$dd8@info.epfl.ch> References: <862035D1F1C@annwfn.com> <3ejf9b$hbg@majestix.uni-muenster.de> NNTP-Posting-Host: masg14.epfl.ch Date: 1995-01-06T16:47:28+00:00 List-Id: I am a happy user of Think Pascal for Macintosh. This defunct compiler had two great (innovative?) tools: its debugger and an automatic text formatter in the editor. You just type if mytest then begin end else begin end; and at the ; the automatic formatter gives IF mytest THEN BEGIN END ELSE BEGIN END; where capitals may be bold (this is somehow parametable). This avoids many many typos (in which case the formatter scrambles the mistyped word) and makes it easy to move up or down with respect to nesting. All this is done without compiling. Surprisingly, this feature has not caught on in other environments I know... !? Is this part of GNAT? In article <3ejf9b$hbg@majestix.uni-muenster.de>, rentmei@asterix.uni-muenster.de (Jahn Rentmeister) writes: |> But you surely know about people who - at one time - wrote things like |> |> for (i=0; i < MAX_LOOP; i++); |> field[i]=GetFieldValue(i); |> |> The original statement you were criticizing says "single-keystroke errors, |> such as...". There are more of them than just assignment and empty loops. |> My golden C rule says "any sufficiently obscure error is due to a missing or |> superfluos semicolon". -- Laurent Gasser (gasser@dma.epfl.ch) Computers do not solve problems, they execute solutions. I know very few ideas worth dying for, none is worth killing.