4 ms·
You are right in most cases. I find it useful for transactional code though, where I might be modifying a bunch of data structures and I want to undo everything
by gpderetta 6y ago
You are right in most cases. I find it useful for transactional code though, where I might be modifying a bunch of data structures and I want to undo everything on error. Doesn't really make much sense to write classes in this case if the code is really function specific.