Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sadly, no:

 irb(main):001:0> (1..10).max
 => 10
 irb(main):002:0> (1...10).max
 => 9
Ruby suffers from a bit of Perl-syndrome, and relies too much on magic syntax and "conventions" created by library authors. It's a nice language and all, but I still prefer Python over Ruby since Python is a simple, clean and elegant language with just a small number of elegant concepts.


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

Search: