All Questions
1 question
84
votes
8
answers
73k
views
Is modifying an incoming parameter an antipattern? [closed]
I am programming in Java, and I always make converters sort of like this:
public OtherObject MyObject2OtherObject(MyObject mo){
... Do the conversion
return otherObject;
}
At the new ...