I think this does confuse every single person who reviews the code (me too when I first saw it a few months ago). It may make sense to explain the structure of the while loop in a comment before the `while` statement.