Where does the word "argument" (in the programming sense) come from?
i.e. Why are actual parameters called "arguments"?
The meanings don't seem related, and I haven't found any explanation of it anywhere.
Note on the terminology:
-
"Formal" parameters (also known simply as "parameters") are the "placeholder" names (say,
x
) — the declared parameters of a function. -
"Actual" parameters (also known as "arguments") are the actual values which are passed to a function (say,
5
), hence I used this term above to prevent any confusion.
Best Answer
The term was adopted by computer scientists when they applied mathematical reasoning to programming in the mid 20th century.
The word argument has the general sense of something from which another thing may be deduced. It comes ‘from the L. arguere “make clear, make known, prove, declare, demonstrate,” from PIE *argu-yo-, from root *arg- “to shine, be white, bright, clear” ’, which root is also preserved in the words argent (“silvery white”) and Argentina (“[river] of silver”).¹
Its use in English to mean a “mathematical quantity from which another … quantity may be deduced, or on which its calculation depends” is attested as early as 1386: