First-class Object

In computing, a first-class object (also -value, -entity, -citizen), in the context of a particular programming language, is an entity which can be used in programs without restriction (when compared to other kinds of objects in the same language). Depending on the language, this can imply:
  • being expressible as an anonymous literal value
  • being storable in variables
  • being storable in data structures
  • having an intrinsic identity (independent of any given name)
  • being comparable for equality with other entities
  • being passable as a parameter to a procedure/function
  • being returnable as the result of a procedure/function
  • being constructable at runtime
For example, in C, it is not possible to create new functions at runtime, whereas other kinds of object can be created at runtime. So functions in C are not first-class objects; sometimes they are called "second-class objects". Similarly, strings are not first class objects in Fortran as it is not possible to assign them to variables, whereas numbers can be so assigned.

 

<< PreviousWord BrowserNext >>
list of raca presidents
list of people by name: rot roz
european mantis
1977
bhoot bangla
holger brner
tritos
dukes of masovia
homarus
jingjiang princes city
turbellaria
list of harmonic analysis and representation theory topics
galactic conquest
battle of honkaniemi
velvia
severndroog castle
crazy english
snooker world rankings
nazi soviet population transfers
michael appleby
te anau
british columbia provincial highway 99a
william joynson hicks, 1st viscount brentford
and you are lynching negroes
michael appleby (new zealand)
crist
william james (naval commander)
european lobster
aotearoa legalise cannabis party
no. 1321 flight raf
unity list
norwegian constitution day
comet (disambiguation)
olvera street
taivalkoski
handheld device
modern screen magazine
vertical application
richard jupp
maureen caird
persistent data structure
the herd (band)
non person
sock monkey