in reply to OO design: returning string and/or special value
If you have a method that returns SCALAR, in this case, I assume it should also be an object. Converting that object to string format should be responsibility of that object's class. not method() that returns that SCALAR responsibility.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: OO design: returning string and/or special value
by Anonymous Monk on Oct 10, 2019 at 08:28 UTC | |
by pwagyi (Monk) on Oct 10, 2019 at 09:24 UTC |