Python vs. Io

John Roth newsgroups at jhrothjr.com
Sat Jan 31 14:37:37 EST 2004


"Paul Prescod" <paul at prescod.net> wrote in message
news:mailman.1078.1075571238.12720.python-list at python.org...
> Daniel Ehrenberg wrote:
> > "Sean Ross" <sross at connectmail.carleton.ca> wrote
> >
> \>
> > I'm not sure how to tell you this so I'll just give a heavily
> > commented example (comments in Io are with #, //, or /* */)
> >
> > parentProto := Object clone //makes parentProto a new object
> > //:= is used for creating new variables
> > parentProto shared := 5 //parentProto's new slot shared holds 5
>
> Do you know why the creator of IO decided not to use the now-ubiquitous
> "." operator? I don't know whether I can define a "." operator that has
> the appropriate behaviour but that wouldn't help anyhow.

As far as I know, since everything is a "message send", the dot
is unnecessary. Every operation is either object.paremeter(s),
or syntactic sugar that gets transformed into that format.

John Roth
>
>   Paul Prescod
>
>





More information about the Python-list mailing list