News for hackers. Stuff that matters.
Re:What I'd like to see in Go 2.0 by mseepgood on Friday February 04, 2022 @10:02AM (#30207576)
> Exhaustive switch seems

This would only make sense on an enum type, which would be a completely new thing, so it can be introduced without breaking backward compatibility. Constants and switch on non-enum values would stay, because they are useful independent of enum types.

Re:What I'd like to see in Go 2.0 by Gwypaas on Friday February 04, 2022 @02:07PM (#30211416)
Also makes sense on numbers and other patterns where you can logically enforce exhaustiveness.