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.


In reply to Re (tilly) 6: One more perl programmer's take on Ruby (discussion) by tilly
in thread One more perl programmer's take on Ruby (discussion) by deprecated

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.