4 ms·
> Rather than calling these "variables with local scope" I suggest we call them "pronouns". There is a closer equivalent of pronouns in (some) programming lang
by dragonwriter 5y ago
> Rather than calling these "variables with local scope" I suggest we call them "pronouns".
There is a closer equivalent of pronouns in (some) programming languages, topicalizing variables. _ in Scala, $_ in Perl, % in the recent JS proposal for pipelines, etc., and the usual explanation of them links to pronouns (and the name links to a linguistic feature related to pronouns, that is also descriptive of their operation.)
The explicit definition of normal local variables make them unlike pronouns. They are more akin to in natural language, providing a description of, e.g., a hypothetical person and then “lets call her Alice”, which is not a pronoun, just a limited scope assignment of a name.