4 ms·
Go has exceptions: you can use `panic` to throw/catch just fine. The community will bring out the torch and pitchforks because it’s “not idiomatic” but if you’r
by jitl 3y ago
Go has exceptions: you can use `panic` to throw/catch just fine. The community will bring out the torch and pitchforks because it’s “not idiomatic” but if you’re programming solo or with other pragmatists don’t let it stop you.
- madeofpalk 3y agoOr just pass pointers because you need optionality, and get null pointer exceptions for free :)
- skybrian 3y agoDoes the community care if it’s not in a public API? If it’s caught within the same library it doesn’t affect anyone else.