Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
innocenat
5y ago
0 comments
Save
Share
It has been a while since I touch Java, but I thought you could just add `throws Exception` to `main` if you don't care about error?
0 comments
2 comments · 1 top-level
top
newest
oldest
mrkeen
5y ago
· 1 in thread
And to every other method too
TeMPOraL
5y ago
If it's exploratory trowaway code then you don't care anyway; if it's meant to last, this forces you to actually deal with failure modes instead of pretending they don't exist.
j
/
k
navigate · click thread line to collapse