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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a9bab26b6fe54a36 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!feeder.news-service.com!weretis.net!feeder5.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Pondering what rationale behind record type Date: Thu, 19 May 2011 11:50:37 +0200 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 19 May 2011 09:50:37 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="vQOapoBCnbPqo6W3WBfabg"; logging-data="16618"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+W8r+EIJy5RKBrDogHYQVf" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: Cancel-Lock: sha1:/MUmf0F/ITHj4wn8/Up0jiuMBNQ= Xref: g2news2.google.com comp.lang.ada:20290 Date: 2011-05-19T11:50:37+02:00 List-Id: Le 09/05/2011 19:47, Anh Vo a �crit : > Some time I am wondering why record type has different syntax pattern > than the rest with respect to type ending text. That is it ends with > 'end record;' no matter what the identifier is. The rest of others end > with 'end identifier'. 'if' ends with 'end if', 'loop' ends with 'end loop'... Granted, if the loop is named, then it ends with 'end loop L'. So, maybe the perfect solution would be 'end record Rec' - but some would find that too much. TBH, there is not always a strong rationale to issues related with concrete syntax. It reflects the feeling, ideas, and sense of aesthetic of the design team. These may vary with people, but also over time: in the 80s, it was considered good practice to have variables in all caps, now it is regarded as shouting. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Adalog a d�m�nag� / Adalog has moved: 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00