3 ms·
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 sy
by jey 19y ago
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.