News for hackers. Stuff that matters.
Re:Ask HN: What does Ruby have that Python doesn't? by gttg on Saturday August 23, 2008 @06:02AM (#284556)
* Everything in Python feels like a symbol table hack.

>It isn't bad at all. (And does not really matter)

* First-class symbols.

>Ok, but python has first class functions.

* Blocks and lambdas. I've read GvR's take on this.

>GvR is right.

* Method definitions in Ruby don't need to accept a "self" argument.

>It isn't bad at all. (And does not really matter)

* Ruby has first-class Regexps. Python has an "re" library. You know what else has an "re" library? C.

> Ruby has private methods. JAva has private methods too. Therefore ruby is bad.

And so on...

p.s. And if you need oop features why use ruby instead of java?

Re:Ask HN: What does Ruby have that Python doesn't? by noamsml on Saturday August 23, 2008 @10:35AM (#284638)
"p.s. And if you need oop features why use ruby instead of java?"

Probably because he values his sanity.