Most of these have conventions. For copy, move, etc the convention is from target, to destination. And an IDE will show you the parameter names. If you still get it wrong, there is also no guarantee that you would assign the correct type either. eg. mixing up foo and bar in {from: foo, to: bar} or foo:From, bar:To Also if there is any speculation you should always read the source code of the function you are calling, or read the documentation, and try the function in a REPL to see how it behaves. There is a line where over- verbosity will have the opposite effect eg. making the code harder/slower to comprehend. So keep it clean and simple. If people get it wrong a lot, make the function figure out the parameters so that it doesn't matter what order you pass them in. And have the function throw a friendly human readable error if you get the arguments wrong!
JavaScript example:
function copy(from, to, overwrite, cb) {
if(typeof overwrite == "function" && cb == undefined) {
cb = overwrite;
overwrite = false;
}
if(from == undefined) throw new Error('First argument "from" not specified!');
if(to == undefined) throw new Error('Second argument "to" not specified!');
if(!exist(from)) throw new Error("from=" + from + " does not exist!");
if(exist(to) && !overwrite) throw new Error("to=" + to + " already exist!");
...
}