4 ms·
> You would write if (true) {...}, but I can't imagine why you would do that. In haste to make your point, you overlook that Boolean expression are used in loo
by alttag 15y ago
> You would write if (true) {...}, but I can't imagine why you would do that.
In haste to make your point, you overlook that Boolean expression are used in loops too. Combined with a "break;" I'm sure many here have used a "while (true)".
- nickknw 15y agoHe was just responding directly to the article's points. The author lamented that now he would "need to write If (1==1) instead"
- cbs 15y agoWe all knew, or should have known, the point the article author was making. Who gives a shit if he wrote if(true) or while(true) in the piece, the same problem applies regardless of if "if(true)" is something you want to see in code or not.