Liste des Groupes | Revenir à cl c |
On 2025-04-16, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:Kaz Kylheku <643-408-1753@kylheku.com> writes:>On 2025-04-16, James Kuyper <jameskuyper@alumni.caltech.edu> wrote:[...]>The key to using the for() statement is to make sure the three>
expressions are related appropriately.
The observation is valid that the three expressions often fall into a
pattern by which they can be condensed.
>
for (var = from; var < to; var++)
>
can be expressed by a construct which mentions var ony once,
and omits the operators.
>
You can obtain this with the preprocessor and be reasonably happy.
Sure, you *can*, but I wouldn't.
But then you would complain about the unpreprocessed version
being verbose, because it becomes a choice at that point.
Les messages affichés proviennent d'usenet.