Liste des Groupes | Revenir à cl c |
bart <bc@freeuk.com> wrote:You don't understand the issue. OK, that's fine. Because it is possible to make typos at any point in the source code, then it doesn't matter if the language provides unnecessary extra opportunities for those errors.On 19/04/2025 20:22, James Kuyper wrote:...The feature allows you to pack all of the loop management stuff togetherI wasn't talking about him finding the tools problematic. I was talking>
aobut him find it difficult to ensure that the expressions are not
arbitrary unrelated expressions, but are in fact correctly related
expressions. If you cannot ensure that A, B, and C have the correct
relationship to make for(A; B; C) work as needed, then you also lack to
ability to make sure that the expressions in {A; B; C:} work together as
needed, and that ability is fundamental to computer programming.
In other words, the feature is dumb.
where it's easy to check and think about. It can be misused, by putting
together stuff that has nothing to do with loop management, just as an
assignment statement can be misused by writing, for instance
annual_salary = current_income + age;
The compiler cannot do any checking: for (i=0; i<n; ++n) is fine.The compiler cannot tell you what's wrong with that assignment
statement, either.
Les messages affichés proviennent d'usenet.