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,ace3fca092a457cd X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 01 Aug 2007 09:24:33 +0200 From: Georg Bauhaus Organization: # User-Agent: Thunderbird 1.5.0.12 (Macintosh/20070509) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Unary operator after binary operator: legal or not? => Compiler Error References: <1185901323.18398.4.camel@kartoffel> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <46b03439$0$20992$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Date: 01 Aug 2007 09:20:25 CEST NNTP-Posting-Host: dee2e779.newsspool1.arcor-online.net X-Trace: DXC=CHb9:EGFa_LX36K@\WTHGJic==]BZ:afN4Fo<]lROoRAFl8W>\BH3YBC7L==5KlGVLA:ho7QcPOVCW`kFHDEM=bKk]i1A;]em1E X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:1311 Date: 2007-08-01T09:20:25+02:00 List-Id: Robert A Duff wrote: > > But what's the general principle? My guess is, "logical and relational operators were separated from other binary operators to get reasonable precedence behavior", as per Jeff Carter. And likely an architect would not want to build on top of chains of punctuation symbols condensing meaning into character sequences that look more like molecules rather than text. IIRC, ML and APL have no overloadings of '-' for negation and subtration. Will users still see a readability problem once there are more satisfactory solutions of the two cases: -X and +"Y" Or perhaps Robert Dewar's suggestion to reserve one punctuation symbol not currently in the language for user defined operator overloading might help, like "$"? Or, since $ is used in some preprocessors, one symbol that is wisely picked from the set of symbols available in ISO 10646. Just one.