News for hackers. Stuff that matters.
Re:What I'd like to see in Go 2.0 by rplnt on Friday February 04, 2022 @08:56AM (#30206786)
> no exhaustive `switch`

This is what linters will do for you by default.

> we instead need to create ValidEnumValues and remember to update it every time a new enum value is added

Code generators are first class citizens in go, and writing an icky but reliable test won't be too hard either.

There are no comments on this comment yet.