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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fa2cc518ef3b992c X-Google-Attributes: gid103376,public From: Robert A Duff Subject: Re: scripting/extension language for Ada (we have an opportunity here) Date: 2000/02/16 Message-ID: #1/1 X-Deja-AN: 586675613 Sender: bobduff@world.std.com (Robert A Duff) References: <389207CC.C16D80E8@averstar.com> <38971028.BB16D8A2@earthlink.net> <3899F757.FAE131B3@free.fr> <389D43A6.786C7B79@free.fr> <880gpk$fv04@ftp.kvaerner.com> <38A47E5A42406034@earthlink.net> <38A53714.3EBC10C3@online.no> <38A5E4FC.9C20A0E4@Raytheon.com> <38A9A7D4.5331F2C3@Raytheon.com> <38AAF0C1.C3F82C40@Raytheon.com> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 2000-02-16T00:00:00+00:00 List-Id: "Samuel T. Harris" writes: >... So I don't need syntax non-terminals > such as function_call_or_array_index_or_qualified_aggregate > with all the complexity involved. The semantics > still have to verify the appropriate nature of > the element. > > Given this, I believe you would agree that the substitution > of () for [] and {} would now be trivial. Yes. But the simplification of the grammar is fairly minor, when compared with the complexity of overload resolution. There may be good and bad things about "[", but I wouldn't say "[" greatly simplifies the compiler/interpreter, as you've defined it. By the way, aggregates (qualified or not) can be syntactically distinguished from function calls and whatnot. The aggregate issue is the potential confusion between a parenthesized expression and a one-element positional aggregate. (I consider it a design flaw in Ada that there are no one-element and zero-element positional aggregates. But with you're "trivial substitution" model, you can't solve that problem.) - Bob