Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Value (computer science)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{short description|Expression in computer science which cannot be evaluated further}} {{refimprove|date=August 2009}} In [[computer science]] and [[software programming]], a '''value''' is the representation of some entity that can be manipulated by a program. The members of a [[type (computer science)|type]] are the values of that type.{{sfn|Mitchell|1996|p=9}} The "value of a variable" is given by the corresponding [[Map (computer science)|mapping]] in the [[environment (type theory)|environment]].<ref>{{Cite book |last1=Aho |first1=Alfred V. |title=Compilers: Principles, Techniques, and Tools |last2=Lam |first2=Monica S. |last3=Sethi |first3=Ravi |last4=Ullman |first4=Jeffrey D. |year=1986 |publisher=Addison-Wesley Publishing Company |isbn=0-201-10088-6}}</ref> In languages with [[assignable variable]]s, it becomes necessary to distinguish between the ''r-value'' (or contents) and the ''l-value'' (or location) of a variable.{{sfn|Mitchell|1996|pp=389β390}} In [[Declarative programming|declarative]] (high-level) languages, values have to be [[referential transparency|referentially transparent]]. This means that the resulting value is independent of the location of the expression needed to compute the value. Only the contents of the location (the bits, whether they are 1 or 0) and their interpretation are significant.{{Citation needed|date=March 2011}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)