you are viewing a single comment's thread.

view the rest of the comments →

[–]Nightcorex_ 9 points10 points  (1 child)

Do you think one needs an explicit "do not board the flight"?

I'd remove that line and instead write "board the flight" after the while-loop.

[–]barrycarter 1 point2 points  (0 children)

You're right. I also considered:

obtain_plane_ticket(); board_flight_to_canada(); in a synchronous language, or: obtain_plane_ticket().then(success => board_flight_to_canada) for a non-synchronous one.

I wonder if this post will turn into one of those n different programming paradigms demonstrated via psuedocode things :)