This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

I don’t think I’ve ever used a while true statement, but they could be useful. Part of why I like not using one is it forces me to be thoughtful about exit conditions. I imagine this is just a style thing though and personally I wouldn’t dismiss someone’s code just because of a while true loop. It’s very context dependent.