Related articles |
---|
[18 earlier articles] |
Re: Definable operators raw@math.wisc.edu (Matthew J. Raw) (1997-04-16) |
Re: Definable operators dlester@cs.man.ac.uk (1997-04-16) |
Re: Definable operators fanf@lspace.org (Tony Finch) (1997-04-18) |
Re: Definable operators monnier+/news/comp/compilers@tequila.cs.yale.edu (Stefan Monnier) (1997-04-18) |
Re: Definable operators burley@tweedledumb.cygnus.com (Craig Burley) (1997-04-18) |
Re: Definable operators apardon@rc4.vub.ac.be (1997-04-20) |
Re: Definable operators genew@vip.net (1997-04-20) |
Re: Definable operators kumo@intercenter.net (David Rush) (1997-04-20) |
Unary operators, was Re: Definable operators fanf@lspace.org (Tony Finch) (1997-04-22) |
Re: Definable operators burley@tweedledumb.cygnus.com (Craig Burley) (1997-04-22) |
Re: Definable operators burley@tweedledumb.cygnus.com (Craig Burley) (1997-04-30) |
Re: Definable operators hrubin@stat.purdue.edu (1997-04-30) |
Re: Unary operators, was Re: Definable operators mfinney@lynchburg.net (1997-05-04) |
[16 later articles] |
From: | genew@vip.net (Gene Wirchenko) |
Newsgroups: | comp.compilers |
Date: | 20 Apr 1997 12:10:54 -0400 |
Organization: | Compilers Central |
References: | 97-03-037 97-03-076 97-03-112 97-03-115 97-03-141 97-03-162 97-03-184 97-04-027 97-04-095 97-04-113 |
Keywords: | syntax, design, comment |
Craig Burley <burley@tweedledumb.cygnus.com> wrote:
[snipped yet more stuff about the evils of "1"+"2"]
While the discussion is on the evils of overloading operators,
how about dealing with unary negation? It's horribly evil: with the
"-" operator possibly being unary or binary depending on context, the
potential confusion is intolerable. How this could lead to the
downfall of civilization is left as an exercise to the advanced
reader.
If you're confused as to whether "1"+"2" equals "3" or "12" in
language X, please RTFM! When I first ran into the "1"+"2"="12"
usage, I thought it was perfectly natural. YMMV, but please don't
demonize something just because it doesn't fit your biases. It fits
mine. Other things don't and I don't use them. You can do the same.
About the only thing the two sides are going to agree on this is
that is a religious issue.
Sincerely,
Gene Wirchenko
[Well, like in all religious issues, we know which side is right. This
discussion is indeed getting long, I'm going to wind it down. -John]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.