points by spullara 2 days ago | 0 comments
that is the same as saying the method throws IOException
[–] pandemic_region 2 days ago
IOException must be #1 on the list of most ignored exceptions. Like okay what am I supposed to do really I'm just trying to run a select against my db
[–] pie_flavor 2 days ago
Well, for example, if you had opened a file to put the data into, you might delete the file or restore from a backup. But even if the answer is nothing, bubbling it all the way up to main is not the wrong answer. The point isn't whether you can do something, it's whether someone can do something.
[–] sieve 2 days ago
[–] spullara 2 days ago
[–] sieve 2 days ago
I do prefer Maybe/Option/Either style returns in some cases though. Makes for a cleaner API.
So each method has its uses.
[–] spullara 1 day ago
[–] mahboi 2 days ago