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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.dns-netz.com!news.freedyn.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 17 May 2019 19:42:06 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: can ada do this? Date: Fri, 17 May 2019 20:42:07 -0400 Organization: IISS Elusive Unicorn Message-ID: References: <3647d776-3024-4b74-9e7e-0798e9b55079@googlegroups.com> <13c2b751-4e0e-4fc7-8a4c-010c86693284@googlegroups.com> <53aecf06-e2f0-48f5-a9f1-1902b6092eb5@googlegroups.com> <3f5d3e31-f155-45ea-b171-49eda1be281d@googlegroups.com> <8ffb8275-a360-430d-aa96-394738328e10@googlegroups.com> User-Agent: ForteAgent/8.00.32.1272 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-Acd1ssbrNVDIRuiMgMzxZzVBaTAUUivAU6o/iGxKEcq2PxdxjNMky2wfQ90ZCgdyP/s3k0BFJT4/Dbt!PElD2ttvYBJk3ktaLhfYdGj7ULJB0sp2xF7/wa8zMPVfu+RX+lFwuFfUtJDelC6ZfNyD2N7I X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3589 X-Received-Bytes: 3840 X-Received-Body-CRC: 308684906 Xref: reader01.eternal-september.org comp.lang.ada:56321 Date: 2019-05-17T20:42:07-04:00 List-Id: On Fri, 17 May 2019 07:42:00 -0700 (PDT), gautier_niouzes@hotmail.com declaimed the following: >> Some Adaphiles yearn for a more-pandering-to-popularity AdaNG (Ada next generation) that, say, has braces instead of BEGIN END, and numerous other shallow “features”. > >The braces replace exactly the BEGIN END pair in *Pascal* (they are needed for framing more than one instruction). In Ada the BEGIN END pair is only for subprograms, or blocks (with or without DECLARE) but the IFs, LOOPs and CASEs don't need it. Basically groups of instructions don't need to be framed in Ada, so where would you put your braces ?... In the end you would have a mess with some braces and some "end loop" etc. Since {} are used in those languages to /group statements/ where the syntax says "a statement", making an Ada-esque language means making a syntax were control blocks are NOT delimited... dropping "loop/end loop", "then/end if", et al, requiring conditionals to be wrapped in (), and allowing if (conditional) a statement; else another statement; Ada's if condition then a statement; else another statement; end if; is an improvement over the error prone use of {} to group statements within syntactically "single statement" parts of the language. And I thought people complaining about Python's use of indentation to block statements was ridiculous -- since most programmers I know already indent code to reflect the semantics, having the language /use/ that indentation for syntax meant one didn't have to provide {} or begin/end (loop/end loop, etc.). Avoiding {} as grouping also minimizes the infernal fight over placement. Is it... if (cond) { statements; } (UGH -- if that were a required form I'd likely define macros for THEN and ENDIF [and the rest of the gang]) if (cond) { statements; } (small ugh -- too many indentation levels eaten for nothing) if (cond) { statements; } (which is my preference in those languages, as it puts the {} directly in line with the keyword for which they are grouping the statements) -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com