←back to thread

498 points azhenley | 1 comments | | HN request time: 0.208s | source
Show context
anymouse123456 ◴[] No.45771965[source]
I completely agree with the assertion and the benefits that ensue, but my attention is always snagged by the nomenclature.

I know there are alternate names available to us, but even in the context of this very conversation (and headline), the thing is being called a "variable."

What is a "variable" if not something that varies?

replies(14): >>45772017 #>>45772042 #>>45772062 #>>45772077 #>>45772262 #>>45772625 #>>45773368 #>>45773945 #>>45774039 #>>45775594 #>>45775669 #>>45775698 #>>45775911 #>>45776839 #
garethrowlands ◴[] No.45772077[source]
The term 'variable' is from mathematics. As others have said, the values of variables do vary but they do not mutate.
replies(1): >>45774378 #
1. astrobe_ ◴[] No.45774378[source]
Yes, and math has the notion of "free variable" and "bound variable" [1].

[1] https://en.wikipedia.org/wiki/Free_variables_and_bound_varia...