Re:On the uses and misuses of panics in Go
by baby on Thursday August 09, 2018 @04:42PM
(#17728302)
It's still way nicer to read compared to the clusterfuck that java is.
[ Parent
| on HN ]
Re:On the uses and misuses of panics in Go
by Roboprog on Thursday August 09, 2018 @05:12PM
(#17728545)
Agreed. I much prefer the style that Anders H. went with in C# of unchecked exceptions and the recommendation to have a single “catcher” at the top of a main event handler/loop spot in the code.
Rather than catch littered everywhere, there is just a top level thing to do something like log a “well it died, cuz <<reason>>, thought you should know (moving on to the next thing)”.