Am Freitag, 25. November 2016 15:49:00 UTC+1 schrieb mhh...@gmail.com: > > Does it make any sense to you too ? >
No. Sorry. For the rare cases where a panic is appropriate you can easily provide Must... functions (see package template or regexp). For other cases panicking is not appropriate. For the logging case: Please no. This is just ignoring the error in disguise. And it often wouldn't work out: Lots of functions have no sensible return on error, e.g. http.Get requires different control flow depending on err being nil or not. All such ideas have been discussed and are not better then the status quo. V. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.