DEV Community

Discussion on: Wishful Coding

Collapse
 
toppk profile image
toppk • Edited

Sometimes I won't want the code to break "compile" so I'll just comment the wishful code, but I always will make a runtime failure if the function isn't complete (e.g. return False, raise exception, etc.)

it's always good to exercise failure paths early