comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: disjoint ranges ?
Date: Sat, 14 Oct 2000 03:12:22 GMT
Date: 2000-10-14T03:12:22+00:00	[thread overview]
Message-ID: <8s8iuk$q66$1@nnrp1.deja.com> (raw)
In-Reply-To: 39E6E890.3B13E7A9@laas.fr

In article <39E6E890.3B13E7A9@laas.fr>,
  Philippe Torres <ptorres@laas.fr> wrote:
> It's very true but i find that, range being an attribute so
> common, the union of ranges would be very useful and not that
> unreasonable. it could
> only improve Ada's advantage in this domain. Perhaps in some
> future ?


No, it could be over all damaging. Every new feature you add
to a language damages it by adding to the understanding,
programming, description, and implementation complexity.
A feature like this is actually *quite* complex, think for
example, that we would have to allow dynamic bounds for the
ranges, and then the checks for disjointness get tricky
to describe (e.g. can several ranges be flat or superflat?
if they are, can bounds overlap for the flat ranges? etc)

That's only the tip of the iceburg complexity wise.

But the point is that you have to make sure that the value
of the feature more than undoes the damage done by its
addition. The burden of proof is tricky in this case, and
I doubt a convincing argument can be made for adding this
feature to the language.


Sent via Deja.com http://www.deja.com/
Before you buy.



  reply	other threads:[~2000-10-14  3:12 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-12  0:00 disjoint ranges ? Philippe Torres
2000-10-12  0:00 ` Pat Rogers
2000-10-12  0:00   ` Ehud Lamm
2000-10-12  0:00     ` Pat Rogers
2000-10-13  0:00       ` Ehud Lamm
2000-10-13  0:34       ` Jeff Carter
2000-10-13  0:00         ` Philippe Torres
2000-10-14  3:12           ` Robert Dewar [this message]
2000-10-16  0:00             ` Robert A Duff
2000-10-16  0:00               ` Robert Dewar
2000-10-16  0:00               ` Lao Xiao Hai
2000-10-17  0:00                 ` Robert A Duff
2000-10-17  0:00                   ` Lao Xiao Hai
2000-10-18  0:00                   ` dmitry6243
2000-10-18  0:00                 ` Robert Dewar
2000-10-18  0:00                   ` Robert A Duff
2000-10-19  3:08                     ` Overloading "in" (was: disjoint ranges ?) Jeff Carter
2000-10-19  0:00                       ` Ehud Lamm
2000-10-21  0:00                       ` Robert Dewar
2000-10-21  0:00                         ` Jeff Carter
2000-10-13  0:00         ` disjoint ranges ? Marin David Condic
2000-10-14  3:14           ` Robert Dewar
2000-10-13  0:00     ` Philippe Torres
2000-10-13  0:00 ` Lao Xiao Hai
2000-10-14  3:17   ` Robert Dewar
2000-10-16  0:00   ` Robert A Duff
2000-10-13  0:00 ` wayne lydecker
2000-10-13  0:00   ` Lao Xiao Hai
2000-10-23  0:00     ` Charles Hixson
2000-10-24  0:00       ` dmitry6243
2000-10-13  0:00   ` wayne lydecker
2000-10-24  0:00 ` Andrew Cooke
replies disabled

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