Skip to main content
4 events
when toggle format what by license comment
Aug 14, 2012 at 8:34 vote accept John Petrak
Aug 14, 2012 at 8:34 comment added John Petrak All these answers pretty much sum up our own discussions. This seems to be a question with no real answer. Your statement "Yes, you're returning the same object as you passed in, but it makes the API clearer." pretty much answered our question.
Aug 13, 2012 at 7:07 comment added Independent I would not return the object if Ira not needed. Thats look like extra processing and memory (over)use. I go för a void or exception, if not of need. Else, i vote för your DTO sample.
Aug 13, 2012 at 6:02 history answered Ben Hughes CC BY-SA 3.0