Comment

Comment by bccdee

Here's a non-syntactic suggestion. Could we just patch gofmt to permit this:

    if err != nil { return nil, err; }
as a well-formatted line of go? Make it a special case somehow.

My only big problem with if err != nil is that it eats up 3 lines minimum. If we could squish it down to 1, I'd be much more content.

parent bccdee 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton