http://www.perlmonks.org?node_id=264922


in reply to OO style question: how much information to hide?

I much prefer the explicit version.

I would be inclined to code it like that even if the module didn't require me to do so. If nothing else, it would avoid useless method calls.

I don't think it would bother me if the module didn't enforce that though. It seems to be in the spirit of giving enough rope... and I might be glad of it when needing a quickie throwaway script or a one-liner.

-sauoq
"My two cents aren't worth a dime.";
  • Comment on Re: OO style question: how much information to hide?