Sounds good to me.
I've always kind of liked that `for (;;)` doesn't involve an explicit constant, but I too like consistency even more. :)
I do prefer
for (;;) because of less typing but if the existing code mostly uses
while (true) then we should go with it.
+1
-Yusuke
On Oct 5, 2022, at 5:07 PM, Tim Nguyen via webkit-dev <[email protected]> wrote:
Hi everyone,
The WebKit codebase has an inconsistent mix of `while (true)` and `for (;;)`. Given 2/3 of the usages are `while (true)` and only 1/3 is `for (;;)` from code search, I would suggest enforcing `while (true)`. I also think it is generally more explicit and readable
than `for (;;)`. If everyone agrees, I’ll enforce this via webkit-style, so we can end up in a consistent place.
What does everyone think?
Cheers,
Tim
_______________________________________________
webkit-dev mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-dev
_______________________________________________
webkit-dev mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-dev
_______________________________________________webkit-dev mailing list[email protected]https://lists.webkit.org/mailman/listinfo/webkit-dev
|
_______________________________________________
webkit-dev mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-dev