sorry is the point here that enums are too complicated to understand?
Apparently, like most modern language features in the last 50 years or so.
Re:Goenums: Type Safe Enum Generator for Go
by lionkor on Saturday April 26, 2025 @07:07PM
(#43808080)
So they made it easy to have data races in a language all about concurrency, bravo. Not buying it.
Re:Goenums: Type Safe Enum Generator for Go
by ad_hockey on Sunday April 27, 2025 @05:44AM
(#43810635)
It's possible to have data races if you ignore the language conventions[1]. But even then, Go has provided an effective data race detection tool since 1.1: https://go.dev/blog/race-detector
I've been using Go on a large codebase for a number of years, and I haven't found data races to be a problem in practice.
Re:Goenums: Type Safe Enum Generator for Go
by lionkor on Sunday April 27, 2025 @04:07PM
(#43814699)
That's fantastic, good job! "Just be good enough at your job" is why C++ is fully concurrency- and memory safe, too. But, you know, its not, that's not how juniors use it, and boy do they write a lot of codebases I end up maintaining.
- Rob Pike