Hacker News new | past | comments | ask | show | jobs | submit login

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.



And you could use {} instead of do/end, but a Pythonista wouldn't consider that any more terse.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: