in reply to Re (tilly) 4: One more perl programmer's take on Ruby (discussion)
in thread One more perl programmer's take on Ruby (discussion)

Just to satisfy my own curiousity and see if I really should take a closer look at Ruby - Are the mixins of Ruby significantly different than mixins one would typically use with CLOS? Are the anonymous blocks different than blocks in Smalltalk or lambda forms in Lisp?

I do find the last point somewhat interesting - it would be interesting to a different class library than a typical Smalltalk's (though some of those are so feature-filled it's hard to imagine needing more :-).

  • Comment on Re: Re (tilly) 4: One more perl programmer's take on Ruby (discussion)

Replies are listed 'Best First'.
Re (tilly) 6: One more perl programmer's take on Ruby (discussion)
by tilly (Archbishop) on Nov 19, 2001 at 20:56 UTC
    The point of Ruby's class library is not that it is feature-filled. It is that it resembles Perl, and shares with Perl the ability to make it easy to whip up answers. Any decent Smalltalk has a library that has more features than Ruby. But said library is unlikely to shine in scripts of length 10-50 lines. Ruby behaves similarly to Perl in this space.

    You can get a sense of this by taking a look in the book at the chapter on built-in classes and methods.

    Moving on, I do not believe that Ruby's mixins differ significantly from what you would use with CLOS. I could say that more definitively if I knew CLOS better. As for the blocks, well the block/iterator concept for Ruby is stolen straight from CLU. If you know it there, then you know it in Ruby, right down to using yield to call your associated block as a callback.

    So I don't think there is that many new ideas in Ruby. Just a mix of ideas from different languages in one framework, bound together very well.