Liste des Groupes | Revenir à cl c |
bart <bc@freeuk.com> writes:I already said that I would have prefered if 'while' was used.On 21/04/2025 22:06, Waldek Hebisch wrote:You think it's inappropriate.bart <bc@freeuk.com> wrote:>
t iteration goes over all elements in the hash table.BTW2: When looking at 'for' loop you are supposed to see pattern,>
without need to track all steps.
That's one of the disadvantages of using the same, often
/inappropriate/ keyword for every kind of pattern.
Would your objections go away if a different keyword were used?
*You* find it much cleaner and simpler. I don't. What makes you rightThis is an interesting point: too much stuff on one line is usually frowned upon: multiple statements, multiple variables being declared etc.
and everyone else wrong?
All three would be IMHO clearer if each of the three clauses were on aComplex loops are nearly always badly formatted and written on one line. Nobody cares. As you've demonstrated.
separate line. The fact that you can write a badly formatted C-style
for loop is not an argument against C-style for loops.
Les messages affichés proviennent d'usenet.