Sujet : Re: Ichbiah 2022 compiler mode
De : lionel.draghi (at) *nospam* free.fr (Lioneldraghi)
Groupes : comp.lang.adaDate : 21. Dec 2024, 00:26:06
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vk4uee$3lfp0$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
I am sensible to the complexity vs use balance, and I would easily cope with the negative consequence of most of the simplifications you propose (at least those I understand!) but obviously it's hard to be fully aware of the consequence.
Le 06/09/2024 à 02:03, Randy Brukardt a écrit :
(3) A number of syntax options are eliminated. Matching identifiers are
required at the end of subprograms and packages. Initializers are always
required (<> can be used if default initialization is needed). Keyword
"variable" is needed to declare variables (we do not want the worst option
to be the easiest to write, as it is in Ada).
Why are you considering variables worst than constants?
I don't want the the "worst" option to be the easiest to write, but neither do I want to put one more keyword in the most common case.
Note that :
1. I have no statistics, but it seems to me that there is more variables than constants in my code.
2. I say "Useless" from my coder point of view, I dont know if it simplify the work for compiler or tools implementers.
Lionel