Content deleted Content added
HTML5, CSS3! (talk | contribs) →Wow, where's JS?: new section |
syntaxhighlight & fix lint |
||
(6 intermediate revisions by 6 users not shown) | |||
Line 1:
{{WikiProject
{{WikiProject
{{WikiProject Computer science |importance=Mid}}
}}
{{Merged-from|Alderson loop}}
Line 113 ⟶ 112:
</syntaxhighlight>
However, I'm sure we have all run into situations in which it was tempting to use a while ( true ), but is it bad form? <B>[[User:Tisane|<
:the rule is that every loop terminates, and when you pretend it doesn't like that, it makes the code harder to read. The example you gave is trivial, and all programming readability conventions can be ignored for trivial cases.
Line 229 ⟶ 228:
Displays:
<
This loop is a trap!
This loop is a trap!</
...and so on.
|