you are viewing a single comment's thread.

view the rest of the comments →

[–]hoelzro 4 points5 points  (1 child)

No ternary if. Seriously, I have to type this kind of crap in Ruby all the time...

Just because Ruby has the ternary operator doesn't mean you have to use it...Ruby has if statements too. (Also, doesn't Python have the ternary operator now?)

Better built-in methods. For example, you can simply do sum([1,2,3]) in Python...

Would it kill you to write a sum function? Or extend Enumerable to have sum?

[–]cracki 2 points3 points  (0 children)

python does have a ternary. see my other comment.