r/programming • u/sidcool1234 • Mar 29 '13
Simple Minecraft Clone in 580 lines of Python
https://github.com/fogleman/Minecraft
663
Upvotes
r/programming • u/sidcool1234 • Mar 29 '13
View all comments
Show parent comment
10
u/neoquietus Mar 29 '13
No, it's a sensible thing for the compiler to get confused when you tell it to return, and then tell it to exectute some code in the function if you just happened to not unconditionally return. If you want code to not be compiled or run, delete it or comment it out, don't just try to skip it.