3 ms·
> Because, by definition, sentinel errors are exported public variables, any code that imports, for example, the io package could change the value of io.EOF. I
by _bxg1 7y ago
> Because, by definition, sentinel errors are exported public variables, any code that imports, for example, the io package could change the value of io.EOF.
I haven't tried Go but this already makes it look... dubious.
- apta 7y agoit's another drop in the bucket of things that make dealing with golang code bases messy and error prone