-
Notifications
You must be signed in to change notification settings - Fork 17.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
os/v2: fix inconsistent casing in names #1187
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Comments
It's easy to see what the casing rules are. Mkdir, Getenv, Readlink, and Readdir os package names are all equivalent to corresponding Linux (and other Unix-style OSs) lower-case function names with the first character capitalized so that the function names are exported. MkdirAll, TempDir, ForkExec, and ReadAt have no corresponding OS functions and use Go standard camel-case names with the first character capitalized so that the function names are exported. |
The Go Nuts mailing list is for Go language questions and discussions. http:https://groups.google.com/group/golang-nuts These has already been a discussion of these issues: FunctionName caseinconsistencies. http:https://groups.google.com/group/golang-nuts/browse_thread/thread/dc52b51b4f007d50/ |
Yes, and the issue tracker is to report issues? Feels like both are being used the way they should. Also, the message from Russ which you point out seems to agree with the problem I report: "Names like Readdirnames, which are actual words, might be worth revisiting at some point." So, here is an issue to track this. |
I think this is manageable. It could lead to a lot of hard to do program rewrites. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
The text was updated successfully, but these errors were encountered: