Timeline for Function that modifies an argument, should I return the modified object?
Current License: CC BY-SA 3.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 10, 2013 at 18:42 | comment | added | Ruan Mendes |
It's a static method, it's just a convenience, the name could be clearer by calling it addTransactionToParamsObject, but the documentation of the object param makes it clear that it's modifying the passed in object. I do see your point that addTransaction .
|
|
| Apr 10, 2013 at 18:40 | history | answered | Jalayn | CC BY-SA 3.0 |