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.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,c7d533acec91ae16 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Question for the folks who designed Ada95 Date: 1999/04/28 Message-ID: <7g7h5s$gcl$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 471942887 References: <7g2qu4$ca4$1@usenet.rational.com> <7g3b5g$p92$1@nnrp1.dejanews.com> <7g4ae3$hjh2@ftp.kvaerner.com> <3725C49E.8106A44B@aasaa.ofe.org> <7g4mrs$v5n$1@nnrp1.dejanews.com> <7g72rf$hjh3@ftp.kvaerner.com> X-Http-Proxy: 1.0 x7.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Apr 28 17:40:07 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-04-28T00:00:00+00:00 List-Id: In article <7g72rf$hjh3@ftp.kvaerner.com>, "Tarjei Tj�stheim Jensen" wrote: > What would a(5) := 4; if a represents a function from an abstract point of view, it does not mean a blithering thing. The fact that a is implemented as an array is irrelevant. Indeed presumably a reasonable choice for implementing a conceptual function as an array would be to use a constant array, where the above assignment would be illegal. Which in my opinion voids the function opposition to the common convention of using square brackets for array indices. There is no such *common* convention. There are *two* common conventions in this case () and [], and plenty of examples of languages using both (for example, Fortran, PL/1, COBOL, Ada, all use (), and Algol derived languages tend to use []). But to call one of these common is simply tunnel vision. You cannot argue this point on the basis of what is common. Sure, for a given person (I assume you grew up in a C heritage) one usage may seem more natural [the brackets seem more natural to me because I am used to them from Algol-68], but that's not a useful way to argue. The referential transparency argument is a quite reasonable one, and your assignment example does not refute it! -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own