3 ms·
I think what happens with this is too much context is lost and in the end you can't really describe what the "right way" to do things is. Is the right way to d
by alkonaut 7y ago
I think what happens with this is too much context is lost and in the end you can't really describe what the "right way" to do things is.
Is the right way to delete a file
result = os.deletefile(path)
or is it
try { os.deletefile(path) } catch (ex) { log(ex) }
and what is the difference? Both may be valid and idiomatic in the same language. With more context such as a forum dialog or a StackOverflow question, these things are usually ironed out. But trying to do the same thing in Haskell (where you might have monadic error handling) or java (where you might have some exception handling chain) is very different even though the same function call is used in the end to actually delete a file.