News for hackers. Stuff that matters.
Re:Next steps toward Go 2 by hacknat on Wednesday June 26, 2019 @09:26PM (#20290972)
I like the idea of throwing better. The whole point is reducing boiler plate so that a conditional return can be made. Something like this:

    f, err := os.Open(filename)
    throw err

This allows alternate signatures easily. I also think the syntax makes a little more sense, as you're "throwing" the error up the chain unceremoniously.

There are no comments on this comment yet.