Wilson Bilkovich
2/7/2006 2:21:00 PM
On 2/7/06, jansenh <henning.jansen@gmail.com> wrote:
> Hi all.
>
> What is a First Class Object, explained in Ruby context?
>
> regards, Henning
"first class" is a general programming-language term for something
that has all the features and behaviors of 'richer' parts of the
language.
Usually it's used when pointing out an interesting feature. Most
languages don't go around crowing about having "first-class Strings".
In Ruby, classes are also objects. Since this is cool and unusual, you
might hear people say that: 'in Ruby, classes are first-class
objects', or 'integers are first-class objects'.