Skip to main content
3 events
when toggle format what by license comment
Oct 12, 2016 at 10:04 comment added David Arno If you "just put the while loop into an if(current != null) { block", you now have an extra level of nesting. Not saying you are wrong. but I'd argue that returning early is better practice than creating extra layers of nesting.
Oct 12, 2016 at 8:07 comment added candied_orange Avoid multiple returns when your resources don't throw exceptions (say in c). Otherwise beware of heading down the path to the arrow anti pattern.
Oct 12, 2016 at 7:02 history answered Kilian Foth CC BY-SA 3.0