1164
On this deserted island I could use some help()
(lemmy.blahaj.zone)
Post funny things about programming here! (Or just rant about your favourite programming language.)
Because exit might be a variable you use to determine if you should exit. exit() is a function that actually does the exiting.
It’s the difference between pointing at a jogger and saying “run” and actually running after them.
If you have a variable called
exit
you've overwritten the function in that scope, and won't be able to execute it.e.g.
Reminds me of setting pi = 3 in my friends matlab subroutines in school.
wow it does do that. cool