-
Notifications
You must be signed in to change notification settings - Fork 210
Open
Description
Quoting @Nashatyrev in #54.
- (codestyle nit not directly related to this PR) there are methods like
class P1 { P1 add(P1 a); }
which modify and returnthis
instance. From my perspective they could be erroneously interpreted as that a new instance is returned andthis
instance is left unmodified. Not sure about common C++ patterns, but Java dev would likely misinterpret this. Does it make sense to returnvoid
from these methods to avoid such misuse?
Metadata
Metadata
Assignees
Labels
No labels