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,81bb2ce65a3240c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.196.232 with SMTP id ip8mr5898810pbc.6.1341075646653; Sat, 30 Jun 2012 10:00:46 -0700 (PDT) Path: l9ni2942pbj.0!nntp.google.com!news2.google.com!news.glorb.com!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? Date: Sat, 30 Jun 2012 17:00:46 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5> Mime-Version: 1.0 Injection-Date: Sat, 30 Jun 2012 17:00:46 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="DkTdSjxOCm6DqG+Uf7eArg"; logging-data="27462"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hDauMMVkrZCQv/Fuq1/PGDlYdUPywxpI=" User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) Cancel-Lock: sha1:XgnVvR+ofpXplarg2K6neEQQEgw= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2012-06-30T17:00:46+00:00 List-Id: On Sat, 30 Jun 2012 14:34:10 +0200, Dmitry A. Kazakov wrote: > On Sat, 30 Jun 2012 12:00:13 +0000 (UTC), Brian Drummond wrote: > >> One obvious problem with an extensible set of operators, in an operator >> precedence grammar, is assigning the precedence level of new operators. > > Ada actually solved that by making associations of operators in question > illegal. E.g. a or b and c. "or" cannot share argument with "and". So one (simple but restrictive) solution would be to extend this "unrelated precedence" to all new operators. > Operators conflicting with identifiers will impose a serious problem. I was not expecting such operators to be permitted. Alphanumeric characters would not be among the set of characters available for the purpose. (a **** b) might be permitted, (a f*** b) would surely not! > http://en.wikipedia.org/wiki/ Mathematical_operators_and_symbols_in_Unicode > > A subset or all of them would suffice. > >> I can't see any fundamental drawbacks. > > Code review and maintainability problems. The set of symbols cannot be > infinite. Practical considerations surely restrict the length of additional operators, but I'm not sure that restriction belongs in the syntax. - Brian