Hacker News story: Pronouns a new name for an old idea

Pronouns a new name for an old idea
In a sentence in natural language a thing can be referenced. The dictionary defines a 'pronoun' as "a word that can function by itself as a noun phrase and that refers either to the participants in the discourse (e.g., I, you ) or to someone or something mentioned elsewhere in the discourse (e.g., she, it, this )." In programming we often find that we have "variables with local scope" that are used within a block. They "refer" to other things. In Lisp, for instance, a LET construct will create local variables that disappear on exit: (defun foo (x) (let ((y (first x))) .... in C it might be void foo (x) int y = first(x); ... Here 'y' is local. Rather than calling these "variables with local scope" I suggest we call them "pronouns". 0 comments on Hacker News.
In a sentence in natural language a thing can be referenced. The dictionary defines a 'pronoun' as "a word that can function by itself as a noun phrase and that refers either to the participants in the discourse (e.g., I, you ) or to someone or something mentioned elsewhere in the discourse (e.g., she, it, this )." In programming we often find that we have "variables with local scope" that are used within a block. They "refer" to other things. In Lisp, for instance, a LET construct will create local variables that disappear on exit: (defun foo (x) (let ((y (first x))) .... in C it might be void foo (x) int y = first(x); ... Here 'y' is local. Rather than calling these "variables with local scope" I suggest we call them "pronouns".

Hacker News story: Pronouns a new name for an old idea Hacker News story: Pronouns a new name for an old idea Reviewed by Tha Kur on October 20, 2021 Rating: 5

No comments:

Powered by Blogger.