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!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Interesting article on ARG work Date: Sat, 7 Apr 2018 12:11:31 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <1b44444f-c1b3-414e-84fb-8798961487c3@googlegroups.com> <62ee0aac-49da-4925-b9aa-a16695b3fc45@googlegroups.com> <9879872e-c18a-4667-afe5-41ce0f54559f@googlegroups.com> NNTP-Posting-Host: kQkuQcRDy1QFvWpyB1foYw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 X-Notice: Filtered by postfilter v. 0.8.3 Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:51376 Date: 2018-04-07T12:11:31+02:00 List-Id: On 2018-04-07 04:25, Randy Brukardt wrote: > The biggest problem with a lexical solution (and the reason that Ichbiah > hated them) is that it's trivial to accidentally create a program that is > only legal in one mode or the other. One has to continually compile > everything in each possible mode to ensure that there aren't silly syntax > errors involved. A common mistake that I make all of the time is: > > if Foo then > Bar; > else > @ Internal_Error; > end if; > > With the conditional compilation off, the "Internal_Error" is commented out > and the above isn't syntactically legal. Yes, this is important but I think this could be resolved, e.g. by compiling conditionals into corresponding null-effect constructs. > Ichbiah wanted to eliminate that > from Ada, so there's no Include (a common feature of other languages back in > the day, and heavily used in the very early versions of Janus/Ada, long gone > now), no preprocessor, and so on -- everything is handled within the usual > syntax of the language. Which doesn't always work that well... Though dangers of preprocessing outweigh any inconvenience. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de