return in for loop or outside loop
Now someone told me that this is not very good programming because I use the return statement inside a loop and this would cause garbage collection to malfunction. That’s incorrect, and suggests you should treat other advice from that person with a degree of skepticism. The mantra of “only have one return statement” (or more … Read more