dalelane’s avatardalelane’s Twitter Archive—№ 22,817

  1. …in reply to @MolloyLaurence
    @MolloyLaurence @amgarratt The else block doesn't get executed when you 'break' out of the while loop. So in the code I was reviewing where I came across this, they were using 'break' to exit the while loop in an error condition, and 'else' to submit the output - but only from successful while-loops.
    1. …in reply to @dalelane
      @MolloyLaurence @amgarratt don't get me wrong... it took me a bit of head-scratching and googling to grok what they were doing :-)