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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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.227.67 with SMTP id ry3mr5329044pbc.8.1341059662781; Sat, 30 Jun 2012 05:34:22 -0700 (PDT) Path: l9ni2213pbj.0!nntp.google.com!news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? Date: Sat, 30 Jun 2012 14:34:10 +0200 Organization: cbb software GmbH Message-ID: References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 9A8bJrx4NhDLcSmbrb6AdA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-06-30T14:34:10+02:00 List-Id: 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". > Given that ways can be found to assign precedence to new operators, why > are extensible operators not found in more languages that allow > overloading? Depends on the syntax. Unicode characters, which are not letters are easy. Operators conflicting with identifiers will impose a serious problem. > It would seem to be a useful way to add expressibility, and 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. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de