Cool things about Ruby on the way out of Python?

Warren Postma embed at
Wed Feb 23 18:56:33 CET 2000

> In Python you would write:
> for x in [1, 2, 3]:
>     print x
> In Ruby you would write:
> [1, 2, 3].each do |x|
>     print x
> end

Looks like Smalltalk.

So can Rose do this:

(x>y).ifTrue do
    ... something ...

If so, then I'd call Rose the conjunction of Pascal begin/end blocks and
Python, and Smalltalk's 'blocks' semantics (|x| is a dead give away
smalltalk-ism).  I don't see what's Perly about it.


More information about the Python-list mailing list