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


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

So start tags and end tags are different things. Then why is there a $token that can be either? You should not get to that stage. From where do you get the tokens? Can you ask for start tags only? If so, you do not have to choose between keeping the condition, or silently doing a no-op.

If you must visit hierarchies of objects of different types, use Visitor.

  • Comment on Re: Re: OO style question: how much information to hide?