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,3d6ef988ec3a5ef7 X-Google-Attributes: gid103376,public From: Geert Bosch Subject: Re: renaming Interfaces.Java.Ada_To_Java_String to the + operator Date: 1998/01/23 Message-ID: <6aa4hp$e9v$1@gonzo.sun3.iaf.nl>#1/1 X-Deja-AN: 318674276 References: <199801221427.PAA05971@basement.replay.com> Organization: La Calandre Infortunee Newsgroups: comp.lang.ada Date: 1998-01-23T00:00:00+00:00 List-Id: Robert Dewar wrote: How universal is the convention of no space after unary operators? Depends on the operator of course ;-). Operators like "not" and "abs" will be followed by a space usually, but a space after a unary "+" or "-" would be very confusing (at least to me). Code like A := + 3; makes me think an A was forgotten after the ":=". I'd think for error recovery purposes it is safe to assume that unary plus/minus is not followed by a space. So plus/minus followed by space is binary and "missing operand" is correct diagnosis, otherwise operator may be unary or binary and the longer message should be given. Regards, Geert