News for hackers. Stuff that matters.
Re:Why I love Go by zaarn on Wednesday December 06, 2017 @03:22AM (#15859498)
>This is also the case in Go (panics and recover).

It is considered good style to not let a panic escape your library API unless something just went very severely wrong that the library could not possibly continue to function normally.

>This is also the case in Go. Errors do not retain anything about their state.

Errors are an interface, you can put any state inside it you want and I've frequently done so (retain line counts in parser or network data for example)

There are no comments on this comment yet.