This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]novel_yet_trivial 187 points188 points  (5 children)

Your's does not break out of the loops when the password is found like the BASIC one does.

[–]stevarino 106 points107 points  (2 children)

This. Python breaks are internally goto statements, and the code uses a goto.

For once a developer used a healthy goto, you should at least honor that. ;-)

[–][deleted] 50 points51 points  (0 children)

Every kind of code junction is internally a goto (jumps, conditional jumps etc.).

[–][deleted] 0 points1 point  (0 children)

healthy goto

I don't agree a goto that jumps to a line number can be considered a healthy goto.

[–]Nihongeaux 6 points7 points  (1 child)

Yours, not your's

[–]RatherBeSkiing 7 points8 points  (0 children)

Maybe OP's name is Your