Symbol (programming)

Symbol (programming)

A symbol in computer programming is a primitive datatype whose instances have a unique human-readable form. Symbols can be used as identifiers. In some programming languages, they are called atoms.

In the most trivial implementation, they are essentially named integers (e.g. the enumerated type in C).

Read more about Symbol (programming):  Support

Other articles related to "symbol, symbols":

Symbol (programming) - Support - Smalltalk - Examples
... The following is a simple example of a symbolliteral in Smalltalk my_symbol = #'an identifier' " Symbolliteral " my_symbol = #a " Technically, this is a selector literal ... most implementations, " " selectors are symbols so this is also a symbolliteral " Strings can be coerced into symbols vice versa my_symbol = 'Hello, world!' asSymbol " => #'Hello, world ...

Famous quotes containing the word symbol:

    Every natural fact is a symbol of some spiritual fact. Every appearance in nature corresponds to some state of the mind, and that state of the mind can only be described by presenting that natural appearance as its picture.
    Ralph Waldo Emerson (1803–1882)