comp.lang.ada
 help / color / mirror / Atom feed
From: hymie@panix.com (Hyman Rosen)
Subject: Re: Ada vs. C++ (Readability)
Date: 1997/09/11
Date: 1997-09-11T00:00:00+00:00	[thread overview]
Message-ID: <5v9nrm$8lp@panix.com> (raw)
In-Reply-To: dewar.873999270@merv



In article <dewar.873999270@merv>, Robert Dewar <dewar@merv.cs.nyu.edu> wrote:
><<> The comma operator has been prettily redefined to cause concatenation>>
>
>UGH! what a perfect illustration of the dangers of such capabilities. Whenever
>someone thinks they have done something clever, as in this case, they have
>often created an unreadable, unmaintainable nasty!

What exactly is it about 'ray x = 1, 2, 3;' that you find unreadable?
The overloading lets you write vector and matrix initializations in a
completely transparent fashion. The reason for the existence of
operator overloading is exactly so that natural-looking notation does
what it appears to do.

In any case, this is part of the interface of a library for high-speed
computation, and is described clearly in that library's documentation
and examples. I would expect that someone maintaining this code would
first acquaint themselves with this, if they are to have any chance of
success at all.




  reply	other threads:[~1997-09-11  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-09  0:00 Ada vs. C++ (Readability) Joerg Rodemann
1997-09-09  0:00 ` Hyman Rosen
1997-09-10  0:00   ` Simon Wright
1997-09-11  0:00     ` Robert Dewar
1997-09-11  0:00       ` Hyman Rosen [this message]
1997-09-12  0:00         ` Joerg Rodemann
1997-09-15  0:00         ` Richard A. O'Keefe
1997-09-10  0:00   ` Joerg Rodemann
1997-09-11  0:00     ` Hyman Rosen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox