No increment operator (++) in Ruby? [duplicate]

Possible Duplicate:
Why doesn’t Ruby support i++ or i— for fixnum?

Why is there no increment operator in Ruby?

e.g.

i++
++i

Is the ++ operator used for something else? Is there a real reason for this?

3 Answers
3

Leave a Comment