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
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 +).
I'd like to hear your thoughts on this.
The text was updated successfully, but these errors were encountered:
Hello there!
I was wondering why
+=
was overloaded to add an item to an array.a += b
should always be the same asa = 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+
).I'd like to hear your thoughts on this.
The text was updated successfully, but these errors were encountered: