Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Golang landmines. Parent comment
func Foo() (err error) { defer func() { err = errors.New("some error") }() }
The function will return the "some error" error.
There are no comments on this comment yet.
func Foo() (err error) { defer func() { err = errors.New("some error") }() }
The function will return the "some error" error.