3 ms·
Makes me think a bit of Python's "ask for forgiveness not permission". I have a few problems with "validate then do something if its valid". On top of what th
by bcrosby95 7y ago
Makes me think a bit of Python's "ask for forgiveness not permission".
I have a few problems with "validate then do something if its valid". On top of what that article mentions, there are concurrency issues (e.g. checking to see if a file exists, then if it does, open it... oops, race condition), and general ergonomics (if I always have to do something before I do something else, there should be a function call that effectively does both).