-
Notifications
You must be signed in to change notification settings - Fork 256
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
Rename creat
to create
.
#199
Conversation
Ken Thompson was once asked what he would do differently if he were redesigning the UNIX system. His reply: "I'd spell creat with an e." - https://en.wikiquote.org/wiki/Ken_Thompson#Quotes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha!
To be fair I think he as refering to the creat
function not the O_CREAT
flag.
If you are going to make this change why not also spell "exclusive" and "truncate" correctly too?
I'm ok either way there. We do have a lot of other abbreviations, like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 we could probably untruncate trunc
and rename excl
to exclusive too. they're the same length as directory
.
👍 The "creat" abbreviation does need to exist in libc and similar libraries, to avoid gratuitously breaking compatibility. However, we don't need that abbreviation in the native syscall layer. |
I think another factor here is something like an uncanny valley effect -- In any case, we seem to have consensus for renaming |
Ken Thompson was once asked what he would do differently if he were
redesigning the UNIX system. His reply: "I'd spell creat with an e."