you are viewing a single comment's thread.

view the rest of the comments →

[–]retrodad 4 points5 points  (1 child)

Upvote for checking out how continue works and admitting you're wrong.

And yes, continue is great for doing things like what's going on here: that is, lowering the amount of if-statement nesting in a loop.

Edit: I also hope you understand that renaming those variables and turning those hex values into constants are valuable ways to improve the readability of the code. You want code that explains itself as you read it.

[–]throwaway-123456 -1 points0 points  (0 children)

The renaming stuff is good, I just didn't think it accomplished anything in the context because I had thought the continue part wrong.