Main Page | See live article | Alphabetical index

First-class

In computer science, values may be of first-class, second-class, or third-class:

assignablepassable as
parameter
passable as
return value
First-classyesyesyes
Second-classyesyesno
Third-classyesnono

In many programming languages, labels are third-class values while numerical values are first-class values. A few languages use this kind of exact distinction.