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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,eda443e5aaf028c4 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Suprise of comparison result Date: 1999/10/21 Message-ID: <7um9mo$dp4$1@nnrp1.deja.com>#1/1 X-Deja-AN: 538618166 References: <37fd7e17.0@news.pacifier.com> <7tk5d5$2qu$1@nnrp1.deja.com> <7tke70$lf4$1@ash.prod.itd.earthlink.net> <7udvrl$npq$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x43.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Oct 21 05:52:27 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-10-21T00:00:00+00:00 List-Id: In article , Robert A Duff wrote: > Robert Dewar writes: > > > To test your understanding, what is the result of > > > > -5 mod 3 > > > > Most people get this wrong! > > Which indicates that (this part of) the language is poorly designed. > But it could be fixed by changing the precedences -- you wouldn't have to > make "-5" be a literal. > > It seems to me that unary operators should never be lower precedence > than binary operators. Do you agree with this language design > principle? I am not sure, would you really want to apply this principle to APL? Sent via Deja.com http://www.deja.com/ Before you buy.