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.6 required=5.0 tests=BAYES_05,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!sunic!enea!sommar From: sommar@enea.se (Erland Sommarskog) Newsgroups: comp.lang.ada Subject: Re: Ada functions versus arrays (i.e. () vs [] ) Message-ID: <848@enea.se> Date: 6 Mar 90 19:13:21 GMT References: <184@trwacs.UUCP> <598@software.software.org> <5619@crdgw1.crd.ge.com> Organization: Enea Data AB, Sweden List-Id: I think the main reason that Ada does not use [] for array indexing is that symbols like () are far easier to read than using letters like C does. Of course Ada could have used something like (..) as Pascal permit, but it feels clumsy. And the flexibility aspect of being able to switch between an array and a function is not to be disregarded. -- Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se