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.220.230 with SMTP id pz6mr7428867pbc.3.1341131108975; Sun, 01 Jul 2012 01:25:08 -0700 (PDT) Path: l9ni5347pbj.0!nntp.google.com!news1.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? Date: Sun, 1 Jul 2012 10:25:07 +0200 Organization: cbb software GmbH Message-ID: <9u8bir7eh9b9$.14ofpjnotvg12$.dlg@40tude.net> References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5> <1hfh4rai2wgtv$.umqxi3ytqb26.dlg@40tude.net> 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-07-01T10:25:07+02:00 List-Id: On Sat, 30 Jun 2012 21:06:15 +0000 (UTC), Brian Drummond wrote: > On Sat, 30 Jun 2012 20:43:17 +0200, Dmitry A. Kazakov wrote: > >> On Sat, 30 Jun 2012 17:00:46 +0000 (UTC), Brian Drummond wrote: >> >>> On Sat, 30 Jun 2012 14:34:10 +0200, Dmitry A. Kazakov wrote: >> >>>> 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. >> >> I didn't meant length. I think that the number of operators should be >> small to be memorizable. All symbols should be predefined, e.g. from the >> Unicode page. > > A symbol is not necessarily a single character; "<=" already isn't. This is an ASCII artefact. With Unicode adopted, there is no need in such tricks. BTW, less-that-or-equal is one character: U+2264. > And > restricting the sequence length necessarily restricts the number of > possible identifiers, so I'm not clear what you are suggesting. Since we allowed Unicode anyway, we could allow all Unicode mathematical operators for use as unary and binary operators. I don't see Unicode making any distinction between unary and binary. If it does Ada should follow that. Unicode specifies some symbols as relations, some as operators. According to that we can assign binary operator priorities (relational level vs. binary adding level). When priorities are same, association of different operators is illegal. Unary operators are highest level, right-to-left, illegal to associate with any binary operators. That is. No user-defined sequences. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de