From: lrk@pobox.com (Lance Kibblewhite)
Subject: Re: C like op= proposal
Date: 1999/08/19
Date: 1999-08-19T00:00:00+00:00 [thread overview]
Message-ID: <94F5B195547AECE1.B6FE2B3CA516CAD6.3C04D9FA19124F16@lp.airnews.net> (raw)
In-Reply-To: 37BBA5E1.13FBF70E@kvaerner.com
Tarjei T. Jensen wrote:
>Keith Thompson wrote:
>> I'm well aware that there's little or no chance of this being added to
>> some future version of Ada (which makes this whole thread somewhat
>> off-topic, I suppose). I'm just saying that I like the idea, and I
>> wouldn't mind seeing it in some future language.
>
>So would I. I don't care much for [+-*/]= as I too think it is ugly.
>However using @ or a functional equivalent seems to be worthwhile. It
>may make some code much more readable than it would otherwise be. I
>don't know if safety critical applications would want to use it, but it
>would be simple to expand the @s before using the source.
>
>So count me in on those who prefer a := @ + 1; over a += 1;
Since we are counting :-), count me out.
There are two issues.
1) Indication of modification of the LHS, as opposed to replacement.
For this, I do prefer the '+=' approach.
2) A shorthand for reducing the possibility of error in duplicating
complex expressions.
For this, consider this situation:
declare
Exp1 : <whatever> renames <first complicated expression>
Exp2 : <whatever> renames <second complicated expression>
begin
Exp1 := Exp2 - Exp1 / Exp2 + 1;
end;
'Renames' is much more versatile. The use of a 'special' notation to
reflect the LHS only seems too specialized.
next prev parent reply other threads:[~1999-08-19 0:00 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-15 0:00 C like op= proposal Brian Rogoff
1999-08-15 0:00 ` Ray Blaak
1999-08-15 0:00 ` Brian Rogoff
1999-08-16 0:00 ` Gautier
1999-08-17 0:00 ` John Duncan
1999-08-17 0:00 ` Gautier
1999-08-17 0:00 ` Samuel Tardieu
1999-08-17 0:00 ` Gautier
1999-08-17 0:00 ` Andi Kleen
1999-08-18 0:00 ` Robert Dewar
1999-08-17 0:00 ` Brian Rogoff
1999-08-18 0:00 ` Ted Dennison
1999-08-18 0:00 ` Jeff Carter
1999-08-18 0:00 ` Keith Thompson
1999-08-19 0:00 ` Tarjei T. Jensen
1999-08-19 0:00 ` tmoran
1999-08-19 0:00 ` Robert Dewar
1999-08-20 0:00 ` P.S. Norby
1999-08-21 0:00 ` Robert Dewar
1999-08-19 0:00 ` Lance Kibblewhite [this message]
1999-08-19 0:00 ` Ted Dennison
1999-08-19 0:00 ` Michael F. Yoder
1999-08-21 0:00 ` Keith Thompson
1999-08-18 0:00 ` Robert I. Eachus
1999-08-18 0:00 ` Gautier
1999-08-18 0:00 ` Robert Dewar
1999-08-18 0:00 ` Brian Rogoff
1999-08-19 0:00 ` Robert Dewar
1999-08-21 0:00 ` Brian Rogoff
1999-08-23 0:00 ` Robert A Duff
1999-08-18 0:00 ` Andi Kleen
1999-08-18 0:00 ` Gautier
1999-08-16 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox