From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Ada 202x and square brackets
Date: Fri, 22 Feb 2019 17:56:54 +0100
Date: 2019-02-22T17:56:54+01:00 [thread overview]
Message-ID: <q4p9km$v7i$1@dont-email.me> (raw)
In-Reply-To: <f6e597b0-e0d4-45ed-8233-258655508387@googlegroups.com>
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
next prev parent reply other threads:[~2019-02-22 16:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-19 22:01 Ada 202x and square brackets Lucretia
2019-02-19 22:36 ` Lucretia
2019-02-20 14:32 ` Jere
2019-02-20 14:38 ` Jere
2019-02-20 14:58 ` Lucretia
2019-02-20 23:47 ` Randy Brukardt
2019-02-21 4:27 ` Lucretia
2019-02-22 0:24 ` Randy Brukardt
2019-02-22 10:34 ` AdaMagica
2019-02-22 11:53 ` J-P. Rosen
2019-02-22 12:37 ` AdaMagica
2019-02-22 16:56 ` J-P. Rosen [this message]
2019-02-22 17:09 ` AdaMagica
2019-02-22 22:18 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox