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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!rt.uk.eu.org!newsfeed.fsmpi.rwth-aachen.de!noris.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Fri, 21 Jun 2013 22:42:45 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: null declarative parts References: <7f33982d-3bcf-452e-a3b3-3a0a28505ff1@x20g2000vbe.googlegroups.com> <87r4g0g9c0.fsf@adaheads.sparre-andersen.dk> <87ip1bg4z2.fsf_-_@adaheads.sparre-andersen.dk> <53d0b070-a03b-43d0-a560-68dd3a8bebf5@googlegroups.com> <51c218df$0$6623$9b4e6d93@newsspool2.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <51c4bac5$0$6579$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 21 Jun 2013 22:42:45 CEST NNTP-Posting-Host: ad0d6458.newsspool3.arcor-online.net X-Trace: DXC=gZ2E`c[5>7@FJ3]dH>I?oEMcF=Q^Z^V3H4Fo<]lROoRA8kFjeYMIEOPCY\c7>ejVH3 On 21.06.13 20:58, Robert A Duff wrote: > You probably like the syntax "(null record)" for an empty aggregate; > I would prefer "[]" (with square brackets). I might leave a blank, > to emphasize its emptiness -- "[ ]" -- but that's as far as I'd go. One meaning of [] is good, many meanings are bad. []-s added for null records would, I fear, (1) increase the puzzlement of programmers in the popular languages market where we regularly need to learn "new" languages that have [] but differ about its meaning. (Just wasted 3 hours on forgetting that a deletion operator applied to a [] (a list) and an index will remove the element, but not the slot (will not splice), which is unlike what it does with a table and an "index". Which is unlike what it does to whatever [] means in C++, and don't mix that with Python, Javascript, or the list notations of MLispThica.) (2) A SIGCSE paper convincingly argues (against PL Turing) that it is a good thing to have [] and {} and other brackets besides () to denote different things, unlike Ada. But I'd hope that the used of [] converges to only one or two commonly accepted meanings of [].