2 ms·
I think you've answered your own question: beauty is in the eye of the beholder. That said, I think Ruby is beautiful for a few reasons, but they mostly stem f
by steveklabnik 16y ago
I think you've answered your own question: beauty is in the eye of the beholder.
That said, I think Ruby is beautiful for a few reasons, but they mostly stem from the fact that Ruby strikes the perfect balance between Lisp and Other Languages: it's taken just enough of the good parts of Lisp and grafted them onto a more 'usual' language. Maybe 'grafted' is too harsh, it's Lisp _from the perspective of the rest of the world_. It's taking Lisp's ideas through a slightly different lens.
Whatever, I'm almost rambling. You get the idea. Some people think Java is beautiful, too...
- masklinn 16y agoIt's mostly taking Smalltalk's ideas, not Lisp's, and it's crashing those ideas from orbit into Perl, of all things. Ruby doesn't have Lisp-style lambdas, or macros, or conses, it has blocks and messages (it tries to anyway) and classes. That's the Smalltalk recipe book. Ruby uses `select` and `reject`, `collect` and `inject`. Those come from Smalltalk's collections.
- steveklabnik 16y agoBroad generalizations are always false. Smalltalk's influence on Ruby is undeniable, but matz has specifically said Lisp influenced him, as well. You're speaking of Lisp's _features_, I'm talking about Lisp's _ideas_. It may not have 'Lisp macros,' but it does embrace metaprogramming, for example.
- masklinn 16y ago> Broad generalizations are always false Are you reminding yourself of that issue? > but matz has specifically said Lisp influenced him, as well. He might have said that, but I don't see it. Then again, considering what he did to Smalltalk it might be very, very well hidden. And in a pretty sad shape. > You're speaking of Lisp's _features_, I'm talking about Lisp's _ideas_ They're in the same state. > It may not have 'Lisp macros,' but it does embrace metaprogramming, for example. Lisp metaprogramming is macro-based, unless you're getting into CLOS. Smalltalk's metaprogramming is based on metaclasses and "unhandled message" forwarding. Guess which one Ruby has?
- steveklabnik 16y ago> Are you reminding yourself of that issue? Both of us, yes. My original comment was painting with a broad brush, and your follow-up is too. > Guess which one Ruby has? You're still speaking around me. The implementation of Ruby's metaprogramming is irrelevant, it's the place of prominence it's been given in the design and culture.