Origin of the term "first-class object"

Aahz aahz at pythoncraft.com
Tue Nov 18 15:59:07 CET 2003

In article <wmkub.177225$9E1.927898 at attbi_s52>,
Rainer Deyke <rainerd at eldwood.com> wrote:
>Suppose the 'x' in 'x = f(x)' is not a simple variable, but an element in a
>l[x * 2 + f(y)] = f(l[x * 2 + f(y)])
>This statement contains an obvious redundancy that will make code
>maintenance difficult.  Python allows me to factor out some of the
>index = x * 2 + f(y)
>l[index] = f(l[index])
>However, Python gives me no way to factor out the remaining redundancy.

Sure it does: change the immutable to a mutable.
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Weinberg's Second Law: If builders built buildings the way programmers wrote 
programs, then the first woodpecker that came along would destroy civilization.

More information about the Python-list mailing list