Open carpawell opened 3 months ago
I think it's too broad. There are valid cases for panics. For example,
https://cs.opensource.google/go/go/+/refs/tags/go1.22.5:src/net/http/server.go;l=1576 https://cs.opensource.google/go/go/+/refs/tags/go1.22.5:src/bytes/bytes.go;l=517
There are valid cases for panics
Agree they can appear when nothing can be done or it is a developer error. But we still panic on user's inputs.
See https://github.com/nspcc-dev/neofs-sdk-go/issues/390#issuecomment-2218503588.