Skip to content
Discussion options

You must be logged in to vote

Without the other context of your code, I think that the iterator variant is better. More verbose, but better. I can see already in the loop headers that we're iterating over layers and then each part of the layer. So this gives us confidence, that we won't go out of bounds for those two.

This is a style lint and with that pretty opinionated. It is totally fair to just disable it, if you don't like what it suggests.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by CommanderStorm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants