Skip to content

Overloaded += to add objects to an array makes no sense? #404

Closed
@louwers

Description

Hello there!

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.

Metadata

Assignees

No one assigned

    Labels

    state: please discussplease discuss the issue or vote for your favorite option

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions