You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Overloaded += to add objects to an array makes no sense? #404
I was wondering why += was overloaded to add an item to an array. a += b should always be the same as a = a + b in my opinion, but of course + isn't overloaded because that would not make any sense (as everyone rightfully expects both operands to be the same type when using +).
Activity
nlohmann commentedon Dec 24, 2016
The syntax was borrowed from Python.
nlohmann commentedon Jan 2, 2017
Any other opinions on this?