Share on Facebook Share on Twitter Email
Answers.com

Identifier

 
(ī′dent·ə′fī·ər)

(computer science) A symbol whose purpose is to specify a body of data.


Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics

Any label, symbol or token that names or identifies an entity or a collection of data. See identification.

Download Computer Desktop Encyclopedia to your iPhone/iTouch

Wikipedia: Identifier
Top

An identifier is a unique expression in a written format either by a code, by numbers or by the combination of both to distinguish variations from one to another among a class of substances, items, or objects. For living organisms and the structural identifications of objects, identifiers could be more complicated.

In computer science, Identifiers (IDs) are lexical tokens that name entities. The concept is analogous to that of a "name." Identifiers are used extensively in virtually all information processing systems. Naming entities makes it possible to refer to them, which is essential for any kind of symbolic processing.

Contents

Identifiers in computer languages

In computer languages, identifiers are tokens (also called symbols) which name language entities. Some of the kinds of entities an identifier might denote include variables, types, labels, subroutines, and packages.

In most languages, some character sequences have the lexical form of an identifier but are known as keywords. In a few languages, e.g., PL/1, the distinction is not clear.

Computer languages usually place restrictions on what characters may appear in an identifier. For example, in early versions of the C and C++ languages, identifiers are restricted to being a sequence of one or more ASCII letters, digits (these may not appear as the first character), and underscores. Later versions of these languages, along with many other modern languages support almost all Unicode characters in an identifier (a common restriction is not to permit white space characters and language operators).

Implementations of programming languages that are using a compiler, identifiers are often only compile time entities. That is, at runtime the compiled program contains references to memory addresses and offsets rather than the textual identifier tokens (these memory addresses, or offsets, having been assigned by the compiler to each identifier).

Implementations of programming languages that offer interactive evaluation of source code (using an interpreter or an incremental compiler) present identifiers at runtime, sometimes even as first-class objects that can be freely manipulated and evaluated. In Lisp, these are called symbols.

Compilers and interpreters do not usually assign any semantic meaning to an identifier based on the actual character sequence used. However, there are exceptions.

For example:

  • In Perl a variable is indicated using a prefix called a sigil, which specifies aspects of how the variable is interpreted in expressions.
  • In Ruby a variable is automatically considered immutable if its identifier starts with a capital letter.
  • In Fortran, the first letter in a variable's name indicates whether by default it is created as an integer or floating point variable.

Advantages of the application

Due to the uniqueness of an identifier, the confusions about the various descriptions on one substance, one item, one topic, or one object can be cleared.

Typical examples are:

  • One person with multiple names
  • One document with multiple versions[1]
  • CAS index names versus IUPAC names[2][3]

Identifiers in various disciplines

Notes

See also



 
 
Learn More
identification (technology)
internal label (computer science)
persistent name (technology)

What are synonyms for identify? Read answer...
How do you identify a colloid? Read answer...
How can you identify weeds? Read answer...

Help us answer these
Program to identify identifier?
How do you identify irony?
How to identify an egg?

Post a question - any question - to the WikiAnswers community:

 

Copyrights:

Sci-Tech Dictionary. McGraw-Hill Dictionary of Scientific and Technical Terms. Copyright © 2003, 1994, 1989, 1984, 1978, 1976, 1974 by McGraw-Hill Companies, Inc. All rights reserved.  Read more
Computer Desktop Encyclopedia. THIS COPYRIGHTED DEFINITION IS FOR PERSONAL USE ONLY.
All other reproduction is strictly prohibited without permission from the publisher.
© 1981-2009 Computer Language Company Inc.  All rights reserved.  Read more
Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Identifier" Read more