Difference between revisions of "Literal (computer programming)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Def.)
 
((computer programming))
Line 7: Line 7:
 
An anonymous function is a literal for the function type.
 
An anonymous function is a literal for the function type.
  
In contrast to literals, [[Variable (computer science)|variables]] or [[Constant (computer science)|constants]] are symbols that can take on one of a class of fixed values, the constant being constrained not to change.  
+
In contrast to literals, [[Variable (computer science)|variables]] or [[Constant (computer programming)|constants]] are symbols that can take on one of a class of fixed values, the constant being constrained not to change.  
  
 
== External Links ==
 
== External Links ==
  
 
* [https://en.wikipedia.org/wiki/Literal_(computer_programming) Literal (computer programming)] @ Wikipedia
 
* [https://en.wikipedia.org/wiki/Literal_(computer_programming) Literal (computer programming)] @ Wikipedia

Revision as of 11:10, 9 May 2015

In computer science, a literal is a notation for representing a fixed value in source code.

Almost all programming languages have notations for atomic values such as integers, floating-point numbers, and strings, and usually for booleans and characters.

Some programming languages also have notations for elements of enumerated types and compound values such as arrays, records, and objects.

An anonymous function is a literal for the function type.

In contrast to literals, variables or constants are symbols that can take on one of a class of fixed values, the constant being constrained not to change.

External Links