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,901cf02e3fdf0c96 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: SI Units - has Ada missed the boat? From: Georg Bauhaus In-Reply-To: <1185168595.983271.43740@d55g2000hsg.googlegroups.com> References: <1183907619.564482.240470@w3g2000hsg.googlegroups.com> <1184742672.910297.54010@o11g2000prd.googlegroups.com> <469dcbd2$0$21009$9b4e6d93@newsspool1.arcor-online.net> <1185168595.983271.43740@d55g2000hsg.googlegroups.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: # Message-ID: <1185216229.18184.19.camel@sonnenregen> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Date: Mon, 23 Jul 2007 20:43:49 +0200 NNTP-Posting-Date: 23 Jul 2007 20:44:05 CEST NNTP-Posting-Host: c3a3cf7d.newsspool4.arcor-online.net X-Trace: DXC=U^;:GeQdmJEC4i^e1BZ=_H4IUKejVHKBH:4J>@hCOC8CVWSeAARL X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:16561 Date: 2007-07-23T20:44:05+02:00 List-Id: On Mon, 2007-07-23 at 05:29 +0000, kevin cline wrote: > With three thousand years of practice writing mathematical > expressions, symbolic operators are universally preferred over prosaic > expressions. Would you also claim that: The problem I see is precisely that programming is, in a sense, not exactly arithmetics. Of course, programming has important mathematical descriptions, etc.. But there is danger in considering them to be the same, and this danger increases when the semantics of "+" is not known. If programmers infer the semantics of "+" from math, they are forgetting something: computers. > Let y = a times x times x plus b plus c > > is just as easily grasped as: > > Let y = ax^2 + bx + c ? Is this identifier "ax" to the power of 2? This is not as absurd as it might seem. Math syntax, used by mathematicians, is full of conventions and highly dependent on context. Programs also depend on context, e.g. the language used, and the operator overloading visible. (Consider # ax^2;; This expression has type int but is here used with type string) In fact, I think that many problems in programming with number types have origins in the tempting similarity of ASCII symbols for computer arithmetic and mathematical expressions on paper. Therefore, the local meaning of _overloaded_ operators should at least be made explicit near the place where they are use.