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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f47e0c6e2e5fd00d X-Google-Attributes: gid103376,public From: dvdeug@x8b4e53cd.dhcp.okstate.edu (David Starner) Subject: Re: Function name problem Date: 2000/01/16 Message-ID: <85tc4u$8q61@news.cis.okstate.edu>#1/1 X-Deja-AN: 573500191 References: <85qecu$24r$1@nnrp1.deja.com> <85stib$a2g1@news.cis.okstate.edu> Organization: Oklahoma State University User-Agent: slrn/0.9.6.2 (Linux) Reply-To: dstarner98@aasaa.ofe.org Newsgroups: comp.lang.ada Date: 2000-01-16T00:00:00+00:00 List-Id: On Sun, 16 Jan 2000 20:47:41 GMT, David C. Hoos, Sr. wrote: > >David Starner wrote in message >news:85stib$a2g1@news.cis.okstate.edu... >> it. If I could use Unicode in writing programs, I can see a few places >> where mathematical symbols would make nice operators, but still, >> a {dot symbol} b and a {cross symbol} b aren't superior enough to >> Dot(a,b) and Cross (a, b) to make the precidence and readibility >> problems worth it. >Beside which, the parameter/return type profiles of dot product and >cross product are unique, so you can just use the "*" operator >for these. I wouldn't. Target typing is a feature that's prone to abuse, and overloading * for the dot product _and_ the cross product seems like it could cause confusion. a := b * c; would mean dramatically different things based on whether a was vector or scalar. (Target typing is something unnerved me when coming from C++, because it seems wrong not to be able to decide the type of an expression without the context. I now understand why it's much more necessary in Ada than C++ or Modula-3, because of the variety of distinct builtin types in Ada and lack of conversions, but it's still not one of my favorite features.) -- David Starner - dstarner98@aasaa.ofe.org If you wish to strive for peace of soul then believe; if you wish to be a devotee of truth, then inquire. -- Friedrich Nietzsche