DEV Community

Discussion on: Don't ALWAYS quick-return from functions

Collapse
 
inf3rno profile image
inf3rno • Edited

One of the advantages of functional programming, that you can write a wrapper, which locks and unlocks the resources automatically, so you won't forget anything to unlock. This approach has it's limitations too ofc. Nice article though, I did not know that was the cause.