the syntax isn't really important here, because my question is this; Is there a better way to get input from the user over and over again? My solution was to simply put the input handlers in a while loop, that way everything gets destroyed by the time the user enters something else.
Is/Are there alternatives to my method that are perhaps more commonplace among the programming zeitgeist?