News for hackers. Stuff that matters.
Re:What Pythonistas Think of Ruby by showell on Wednesday February 03, 2010 @11:04AM (#1097997)
Decorators and annotations are very useful in Python, but I still like the terseness of Ruby--no need to define "hello()". Of course, Python wins on a different kind of terseness--no do/end--but that is mostly orthogonal.
Re:What Pythonistas Think of Ruby by steveklabnik on Wednesday February 03, 2010 @04:40PM (#1098946)
And you could use {} instead of do/end, but a Pythonista wouldn't consider that any more terse.
Re:What Pythonistas Think of Ruby by showell on Thursday February 04, 2010 @12:07AM (#1099841)
Yep, my mention of do/end or squigglies was just a caveat on the Ruby-is-more-terse-in-this-example statement in the context of anonymous functions or blocks. I wish there was a language that won on both terseness metrics--i.e. a Ruby with indentation or a Python with anonymous functions.