ooopss...

Jay O'Connor joconnor at cybermesa.com
Tue Dec 12 13:24:31 EST 2000


>         while (stream.atEnd()):
>                 element = stream.next()
>                 #process element

Oops...Of course that won't work.  I was translating the normal idiom
from Smalltalk, which uses #whileFalse:  in such situations instead of
#whileTrue:

It should read 
                
        while (! stream.atEnd()):
                element = stream.next()

As an aside, is there a Stream library for Python?  Similar to
Smalltalk's? I miss the idiom...If not, would anyone be interested in
having one? I could probably do it as a side project

It's a lot easier to extend a language by adding libraries than by
changing the syntax
-- 
Jay O'Connor
joconnor at cybermesa.com
http://www.cybermesa.com/~joconnor

"God himself plays the bass strings first when He tunes the soul"




More information about the Python-list mailing list