News for hackers. Stuff that matters.
Re:My Favourite Diff by benhoyt on Sunday April 05, 2020 @07:34PM (#22789644)
This is actually a feature in Go, but you leave off the "true" condition entirely: https://tour.golang.org/flowcontrol/11

I quite like it, as it cuts down on the amount of brace and if/else if noise.

There are no comments on this comment yet.