Re: [go-nuts] idea behind error interface and github.com/pkg/errors

2016-09-27 Thread Ian Davis
On Fri, Sep 23, 2016, at 08:03 AM, Ahmy Yulrizka wrote: > I understand that, I dont either. But what's the idea behind not > having it at the first place? Is there more to it other than make it > more simple? One possibility is that it reduces the number of allocations (for storing frame pointers)

Re: [go-nuts] idea behind error interface and github.com/pkg/errors

2016-09-23 Thread Jan Mercl
On Fri, Sep 23, 2016 at 9:03 AM Ahmy Yulrizka wrote: > I understand that, I dont either. But what's the idea behind not having it at the first place? Is there more to it other than make it more simple? Being it an interface, it's universal. One can choose a simple number, string, etc. to be an e

Re: [go-nuts] idea behind error interface and github.com/pkg/errors

2016-09-23 Thread Ahmy Yulrizka
I understand that, I dont either. But what's the idea behind not having it at the first place? Is there more to it other than make it more simple? On Fri, Sep 23, 2016, 8:29 AM Jan Mercl <0xj...@gmail.com> wrote: > Nothing prevents you from including the call stack in the error message. > Especia

Re: [go-nuts] idea behind error interface and github.com/pkg/errors

2016-09-22 Thread Jan Mercl
Nothing prevents you from including the call stack in the error message. Especially if you prefer the way how Java error messages look. I don't. On Fri, Sep 23, 2016, 08:24 Yulrizka wrote: > Hello > > I was watching Dave Cheney's presentation in gopher conf and was > fascinated. > > (btw he als