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: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Ada 202x and square brackets Date: Fri, 22 Feb 2019 17:56:54 +0100 Organization: Adalog Message-ID: References: <54a5873a-57aa-40c6-8af4-a6f908d53593@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 22 Feb 2019 16:56:54 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="7843031666a1a589a8c4f01a55aea8ad"; logging-data="31986"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qw2UV1FHgFnFfxeIS6Xqq" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 Cancel-Lock: sha1:AGnKlEmQjuGKgNzIvOXpcsgS7rA= In-Reply-To: Content-Language: fr Openpgp: preference=signencrypt Xref: reader01.eternal-september.org comp.lang.ada:55633 Date: 2019-02-22T17:56:54+01:00 List-Id: Le 22/02/2019 à 13:37, AdaMagica a écrit : > Am Freitag, 22. Februar 2019 12:53:00 UTC+1 schrieb J-P. Rosen: >> There are cases where you want to mix for clarity: ([1,2], [3,4]) > I do not see that this enhances clarity, but rather raises questions > about the difference. I see new coding standards emerge saying: Use > [] only for containers, not arrays. (I've seen lots of stupid rules > in such coding standards.) So this would then be an array aggregate > of container subaggregates. A possible rule would be, when you have nested aggregates, to alternate between parentheses and brackets. Or the rule you suggest. Or whatever people find useful - i.e. better not put "good taste" rules, leave that to tools. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr