Python vs. Io

Paul Prescod paul at prescod.net
Sat Jan 31 12:40:04 EST 2004


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.

  Paul Prescod





More information about the Python-list mailing list