Timeline for Why are shortcuts like x += y considered good practice?
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 19, 2015 at 9:38 | history | edited | Peter Mortensen | CC BY-SA 3.0 | Copy edited. Removed historical information (e.g. ref. <http://meta.stackexchange.com/a/230693> and <http://meta.stackoverflow.com/questions/266164>). |
| Feb 11, 2012 at 13:42 | comment | added | leftaroundabout | "If a class only defines the + operator, x+=y is indeed a shortcut of x=x+y." But surely it also works the other way around? In C++, it's very common to first define += and then define a+b as "make a copy of a, put b on it using +=, return the copy of a". | |
| S Feb 10, 2012 at 14:34 | history | suggested | eithed | CC BY-SA 3.0 | added operator fun! |
| Feb 10, 2012 at 14:25 | review | Suggested edits | |||
| S Feb 10, 2012 at 14:34 | |||||
| Feb 10, 2012 at 13:44 | history | edited | flying sheep | CC BY-SA 3.0 | added 8 characters in body |
| S Feb 10, 2012 at 13:25 | history | answered | flying sheep | CC BY-SA 3.0 | |
| S Feb 10, 2012 at 13:25 | history | made wiki | Post Made Community Wiki by flying sheep |