Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by hding (Chaplain)
on Nov 19, 2001 at 19:50 UTC ( [id://126282]=note: print w/replies, xml ) Need Help??


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 :-).

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://126282]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-29 10:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found