3 ms·
> The existing octal notation indicated by a leading 0 followed by octal digits remains valid. Oh my god why?
by Gibbon1 7y ago
> The existing octal notation indicated by a leading 0 followed by octal digits remains valid.
Oh my god why?
- ptman 7y agoTo not break go1 backwards compat?
- Gibbon1 7y agoCompatible with what exactly. No one uses octal. Here is a link to Pike fucking it up 10 years ago. https://github.com/golang/go/issues/151#issuecomment-66048306 https://github.com/golang/go/issues/151#issuecomment-6604830...
- psanford 7y agoLots of code uses octal. Its still the standard way of notating file permission bits on unix: os.Chmod(filename, 0777). You would break so much code if you just threw that away.
- enneff 7y agoCompatibility. https://golang.org/doc/go1compat https://golang.org/doc/go1compat
- ithkuil 7y agoBackward compatibility