Comment

Comment by dragonwriter

> However you generally you don't want to catch panics except under rare conditions because panics are intended to be used in "the world is ending" kind of scenarios

Strange, I've always heard the opposite: if you write a function that can panic, you always want to handle it in your code that calls the function (which should be the only code that could) because panics should generally not be exposed across a public interface, including the boundary between the top-level Go code to the outside world.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton