Aug 7, 2023
you are right, that we need to choose the best tool to solve our problems — but labelling nested for-loops isn't the best. the best solution is to avoid nested for loops in the first place. in all your examples the right tool would be using sets. Another would be using filter on array.
I would consider labels a code smell, on par with the goto statement https://xkcd.com/292/