I have come JS code with some infinite loops (we're using node-fibers to allow things to happen).
ESLint hates:
while (true) {
}
because of the constant condition.
The following is allowed though:
for(;;) {
}
Beyond just feeding the lintbeast, are there any objective reasons to favour for
over while
(or vice versa)?
NOTE: This question is explicitly requesting objective reasons and so is not simply opinion based.