News for hackers. Stuff that matters.
Re:Go Enums Suck by zarldev on Friday March 01, 2024 @03:29PM (#39566425)
Hey did you read to the bottom of the article. It shows that that was just a temporary solution, the real invalid code is

func (t operation) IsValid() bool { _, ok := strOperationMap[s] return ok }

Tbh it has been updated to us an array instead for string indexing.

There are no comments on this comment yet.