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.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8276b2994037cd71 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-10-13 20:20:13 PST Path: supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!newsfeed.mesh.ad.jp!feed2.onemain.com!feed1.onemain.com!xfer13.netnews.com!netnews.com!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Robert Dewar Newsgroups: comp.lang.ada Subject: Re: disjoint ranges ? Date: Sat, 14 Oct 2000 03:12:22 GMT Organization: Deja.com - Before you buy. Message-ID: <8s8iuk$q66$1@nnrp1.deja.com> References: <39E612C9.9BF98CD3@laas.fr> <8s59nu$ej4$1@news.huji.ac.il> <39E658A4.525AE881@acm.org> <39E6E890.3B13E7A9@laas.fr> NNTP-Posting-Host: 205.232.38.240 X-Article-Creation-Date: Sat Oct 14 03:12:22 2000 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) X-Http-Proxy: 1.0 x68.deja.com:80 (Squid/1.1.22) for client 205.232.38.240 X-MyDeja-Info: XMYDJUIDrobert_dewar Xref: supernews.google.com comp.lang.ada:1239 Date: 2000-10-14T03:12:22+00:00 List-Id: In article <39E6E890.3B13E7A9@laas.fr>, Philippe Torres 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.