Skip to main content

Easier to Ask for Forgiveness than for Permission (EAFP)

·36 words·1 min
Python
oon arfiandwi
Author
oon arfiandwi
keep it simple, s!

There is a rule in Python programming called “it is Easier to Ask for Forgiveness than for Permission” (in short: EAFP) 1.

It means that you should catch exceptions instead of checking values for validity.