The out-parameters tag has no wiki summary.
3
votes
4answers
218 views
Function that modifies an argument, should I return the modified object?
We have a function that modifies a JS object, by adding some custom properties to it. The function doesn't return antyhing
addTransaction: function (obj) {
obj.transactionId = ...
2
votes
2answers
226 views
Is using “out” or “ref” parameters in Java methods to return extra values bad?
I happened to create a mutable class like this:
class Mutable<T> {
private T value;
public Mutable() { this.value = null; }
public Mutable(T value) { this.value = value; }
T ...