Adding static typing to Python

John Roth johnroth at
Sat Feb 23 15:14:27 CET 2002

A bit of a linguistic nit below:

"Quinn Dunkan" <quinn at> wrote in message
news:slrna7dhbm.5et.quinn at
> On Fri, 22 Feb 2002 16:14:03 +0000 (UTC), gbreed at
> <gbreed at> wrote:
> >Quinn Dunkan wrote:
> >

> >> I'm not even sure why the smalltalk style 'object followed by
> >> notation
> >> caught on, especially since 'function followed by args' has always
> >> firmly entrenched.
> >
> >It happens to match the usual English word order: "the class's
> >rather than "the method of the class".  If the field had been
dominated by
> >French speakers, perhaps it would have been the other way round.
> Yeah, I've heard postfix function application described as
"subject-verb" and
> prefix application as "verb-subject", which indicates that people are
> linguisticly.  But I still think English has at least a strong
> around "the area of the circle" or "rotate the circle" or "the sorted
list" all
> of which are verb-subject.  Another hypothesis is that OO-heads wanted
> emphasize that their programs are conceptually data oriented, rather
> function oriented.  Could be the same reason they invented all that
> "message" and "responds to" terminology.

Your first and third examples do not include a verb, so subject-verb or
verb-subject aren't really relevant. The actual linguistic issue is
whether noun
clauses are written modifier-noun or noun-modifier.

Writing a method call as
has the distinct advantage that it is much easier to emit code: that's
order in which the program has to follow the object chain. Doing it in
the other order requires the compiler or interpreter to maintain a stack
before emitting code or executing the instruction.

I've never understood "message" as terminology either. I've
always made the totally unsupported assumption that way back
in the beginning, someone thought of each object instance as being
a separate thread, so that message actually meant something other
than 'function call with a misleading name.'

John Roth

More information about the Python-list mailing list