-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Disambiguate symlink argument names #79060
Conversation
r? @sfackler (rust_highfive has picked a reviewer for you, use r? to override) |
Personally I prefer |
"Target" is close to synonymous with "destination" and almost as bad IMO. |
r=me implementation wise I do think that original is better than target (target for what?). I sort of want to do "more" here (e.g. force callers to explicitly name their arguments) but I don't think we can readily do so today and this seems like an improvement already. Feel free to r=me unless you want to let this sit for libs feedback (or just general discussion). It seems low cost to rename these multiple times though if necessary. |
👍 to making it clearer. Out of curiosity, I collected a few other naming conventions:
|
IMO their names are even worse but it's subjective. Both |
|
@bors r=Mark-Simulacrum |
📌 Commit 29128a5 has been approved by |
☀️ Test successful - checks-actions |
The current argument naming in the following standard library functions is horribly ambiguous.
Notice that Swift uses one of the same names we do (
dst
) to refer to the opposite thing.being created
src
dst
withDestinationPath
destPath
atPath
path
original
link
oldname
newname
target
link
path1
path2
target
linkpath
Out of these I happen to like D's argument names and am proposing that we adopt them.