▲ | sssddfffdssasdf 5 days ago | |||||||
But it looks like that until 3 years ago, this string comparison was the only way to do it. https://github.com/golang/go/pull/49359/files | ||||||||
▲ | gwd 5 days ago | parent | next [-] | |||||||
Good catch. So in a sense this isn't really Hyrum's Law (which would be more appropriate to things like the Sim City / Windows 3.x UAF bug described in a sibling comment); it's more like, if people need to do something, and you don't give people an explicit way to do it, they'll find an implicit way, and then you're stuck supporting whatever that happened to be. | ||||||||
| ||||||||
▲ | lokar 5 days ago | parent | prev [-] | |||||||
Or they could have fixed the error (adding the type) instead of matching the string. |