3 ms·
You are speaking way too conceptually and not looking at the actual warnings that compilers report. Some compilers will warn about: while (true) { ... } h
by MichaelBurge 5y ago
You are speaking way too conceptually and not looking at the actual warnings that compilers report.
Some compilers will warn about:
while (true) { ... }
having a constant condition. The fix is to write:
for (;;) { ... }
to nobody's benefit.
I've used languages that warn if you use snake_case instead of camelCase, because it violates their preferred naming convention. Or if you accidentally use a tab somewhere, it'll warn about a mix of tabs and spaces.
None of these matter for correctness, yet you're advocating to break the build for correctness.
- citrin_ru 5y ago> The fix is to write: > for (;;) { ... } > to nobody's benefit. Idiomatic constructions benefit whoever would read the code (along with choosing and following to a style guide).