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=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7f4d16c4ee371eb5 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Why is it Called a Package? Date: 2000/04/07 Message-ID: <8ckfsp$ab8$1@nnrp1.deja.com>#1/1 X-Deja-AN: 607852103 References: <38DF7F38.8D656ABD@lmtas.lmco.com> <38DFB0BC.9FF72EFC@callnetuk.com> <87u2hq857e.fsf@deneb.cygnus.argh.org> <38E2A4A4.E59E997C@research.canon.com.au> X-Http-Proxy: 1.0 x42.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Apr 07 11:13:36 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-04-07T00:00:00+00:00 List-Id: In article , Brian Rogoff wrote: > I think if the syntax were to be redone I'd like the issue of "()" versus > "[]" for array indexing to be reexamined. Then we could also think about > some syntactic sugar for overloading "[]" as in C++. The restrictions on > the character set that were part of the original Ada requirements don't > make a lot of sense to me now, though the restriction to ASCII is OK. There is no point in revisiting this, because nothing has changed since Ada 95. The reason for not differentiating [] vs () has to do with referential transparency (i.e. arrays are conceptually like functions) not with character set restrictions. Yes, there are arguments on both sides. Yes, these arguments are well known since 1960 Yes, these arguments were brought up during the Ada design No, they did not convince people that [] is a good idea No, nothing has changed that would suggest revisiting this issue The question of overloading indexing is of course a completely separate one, since this is not a matter of syntax but semantics, and is thus completely orthogonal. Sent via Deja.com http://www.deja.com/ Before you buy.