This is the
talk page for discussing improvements to the
Variable (computer science) article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google ( books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
This
level-5 vital article is rated Start-class on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||
|
See the discussion page Talk:Variable for the common discussion history of Variable (mathematics) and Variable (programming). prohlep ( talk) 15:49, 3 October 2009 (UTC)
The current definition is not correct. It seems to define what an identifier (computer science) is. This difference becomes important when you start to consider scoping, aliasing and life time of variables (and identifiers). For example, the "symbolic name" may go out of scope, but the variable might continue to exists. There might be multiple identifiers bound to the same variable, etc. — Ruud 13:08, 22 June 2011 (UTC)
Robert Harper recently posted some relevant comments on this issue [1] [2]. — Ruud 20:20, 11 February 2012 (UTC)
It would be useful to include example naming conventions, eg use of case, whether recommended or imposed for use in specific languages or conventions adopted by organisations. FreeFlow99 ( talk) 20:45, 9 August 2013 (UTC)
Why do we redirect here from "Scalar (computer science)" and not mention scalars anywhere on the page or the discussion? 118.208.247.51 ( talk) 09:44, 15 September 2013 (UTC)
In the section "Actions on a variable," the last line ("...which value can be changed at run time or execution time is called variable") in the second paragraph [below] makes no sense. The logic of the rest of the paragraph seems to be complete without it. Is it, perchance, just something that has inadvertently remained following a revision? Or does the first part of it possibly belong after the phrase, "...may be associated only with the current value,..."?
"Depending on the type system of a programming language, variables may only be able to store a specified datatype (e.g. integer or string). Alternatively, a datatype may be associated only with the current value, allowing a single variable to store anything supported by the programming language. which value can be changed at run time or execution time is called variable" Wikifan2744 ( talk) 06:33, 9 March 2014 (UTC)
This page seems to contradict how “parameter” is defined in /info/en/?search=Parameter#Computing and /info/en/?search=Parameter#Computer_programming.
I have issue with "In computer programming, a variable or scalar is a storage location (identified by a memory address)". So fully optimized variable that is only stored in a registry is not a variable?
This is the
talk page for discussing improvements to the
Variable (computer science) article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google ( books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
This
level-5 vital article is rated Start-class on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||
|
See the discussion page Talk:Variable for the common discussion history of Variable (mathematics) and Variable (programming). prohlep ( talk) 15:49, 3 October 2009 (UTC)
The current definition is not correct. It seems to define what an identifier (computer science) is. This difference becomes important when you start to consider scoping, aliasing and life time of variables (and identifiers). For example, the "symbolic name" may go out of scope, but the variable might continue to exists. There might be multiple identifiers bound to the same variable, etc. — Ruud 13:08, 22 June 2011 (UTC)
Robert Harper recently posted some relevant comments on this issue [1] [2]. — Ruud 20:20, 11 February 2012 (UTC)
It would be useful to include example naming conventions, eg use of case, whether recommended or imposed for use in specific languages or conventions adopted by organisations. FreeFlow99 ( talk) 20:45, 9 August 2013 (UTC)
Why do we redirect here from "Scalar (computer science)" and not mention scalars anywhere on the page or the discussion? 118.208.247.51 ( talk) 09:44, 15 September 2013 (UTC)
In the section "Actions on a variable," the last line ("...which value can be changed at run time or execution time is called variable") in the second paragraph [below] makes no sense. The logic of the rest of the paragraph seems to be complete without it. Is it, perchance, just something that has inadvertently remained following a revision? Or does the first part of it possibly belong after the phrase, "...may be associated only with the current value,..."?
"Depending on the type system of a programming language, variables may only be able to store a specified datatype (e.g. integer or string). Alternatively, a datatype may be associated only with the current value, allowing a single variable to store anything supported by the programming language. which value can be changed at run time or execution time is called variable" Wikifan2744 ( talk) 06:33, 9 March 2014 (UTC)
This page seems to contradict how “parameter” is defined in /info/en/?search=Parameter#Computing and /info/en/?search=Parameter#Computer_programming.
I have issue with "In computer programming, a variable or scalar is a storage location (identified by a memory address)". So fully optimized variable that is only stored in a registry is not a variable?