Init seems very harsh, how can you ensure proper configuration then?
Otherwise I don't mind oanics during object creation or explicit
initialization.
Panics in mid execution less so but parhaps there are cases where it is
warranted.
ons 31 maj 2017 kl 21:25 skrev Peter Kleiweg
If a package can't be used because some precondition can't be fulfilled, you
can use a panic. Then the whole program will crash at start-up.
The alternative would be to not panic in the init, but have all function calls
return an error. If the package is used in a large program, part of it may