in reply to Re^2: OO design: returning string and/or special value
in thread OO design: returning string and/or special value

I use wantarray in my code, but with the aim of doing so consistently, i.e. related methods all use it or all don't. Returning list refs is generally faster, especially if the list is large, so in some cases it is added as an optimisation that will not break (or will break less) code elsewhere in the system. This code is not on CPAN, though, so I have more freedom in doing so.

  • Comment on Re^3: OO design: returning string and/or special value