Re:Parameter or Argument?
by junke on Thursday July 14, 2016 @11:12AM
(#12094514)
The meaning of parameters and arguments in the context of functions, which is what this post is about, are defined as usual[1]:
> argument n. 1. (of a function) an object which is offered as data to the function when it is called.
> parameter n. 1. (of a function) a variable in the definition of a function which takes on the value of a corresponding argument (or of a list of corresponding arguments) to that function when it is called, or which in some cases is given a default value because there is no corresponding argument.
What you describe are the two possible ways of defining special variables, which are more like program parameters.
> argument n. 1. (of a function) an object which is offered as data to the function when it is called.
> parameter n. 1. (of a function) a variable in the definition of a function which takes on the value of a corresponding argument (or of a list of corresponding arguments) to that function when it is called, or which in some cases is given a default value because there is no corresponding argument.
What you describe are the two possible ways of defining special variables, which are more like program parameters.
[1] http://www.lispworks.com/documentation/HyperSpec/Body/26_glo..., http://www.lispworks.com/documentation/HyperSpec/Body/26_glo...