for i in 3..6 do
puts i
end 3.upto(6){ |x| puts x }
I don't think the uniqueness of a language is any reason not to learn it. To be honest that sounds lazy.PS I'm not a Ruby zealot, and Python is a great language
Zen of Python: "There should be one-- and preferably only one --obvious way to do it."
Sure, there are other ways to do it in Python, but it'd be frowned upon to use something like 3.upto(6) rather than a standard range() that everyone is used to. Readability matters.
Note: I used Python daily at work and for open source projects. I also use Ruby for open source projects. I like them both.
This makes me curious how much more frequently range is used than xrange and in what situations it's preferable.
However, Python's TOOWTDI comes to mind. Not that it's quite true, but probably closer than with Ruby. I guess one could debate whether TOOWTDI is a good thing -- but I reckon Perl is the argument as to why it is a good thing.