by gopher_1234 · 4y ago · 0 comments
In general, please stop panicking in library Go and Rust code. It's rude.
The style point that people are missing here is that every type should have a usable zero value. If (&SomeStruct{}).Method() panics, that's an API design flaw.