News for hackers. Stuff that matters.
Re:What I'd like to see in Go 2.0 by mieubrisse on Friday February 04, 2022 @09:46AM (#30207351)
Yep, agreed. Maybe a new hypothetical `exhaustiveswitch` keyword could be added that would be backwards compatible, but it doesn't seem very Go-like to have such similar functionality as separate keywords.
Re:What I'd like to see in Go 2.0 by dpatterbee on Friday February 04, 2022 @10:18AM (#30207806)
I believe new keywords are not backwards-compatible as they will invalidate any code using that as an identifier.