What does shorthand operator like (+=) in ruby really does?

前端 未结 0 1810
我寻月下人不归
我寻月下人不归 2020-12-03 19:49

While I can understand that x += 1 is equivalent to x = x + 1, I\'m interested what it does in the background.

I\'ve tried in irb with

相关标签:
回答
  • 消灭零回复
提交回复
热议问题