in reply to Re: Why is the predicate method not available for a MooseX::Privacy protected attribute?
in thread Why is the predicate method not available for a MooseX::Privacy protected attribute?

Thanks for the reply. Everything you said makes sense, but...

I say "but" because the user experience with this use case is less than desirable. The inconsistency between the failure of the predicate method and the success of the delegated method doesn't satisfy my left-brain needs. So, there's my two cents for what it's worth.

Also, we could easily apply the same argument to the predicate method as was given for the delegated method, e.g. "That a method is implemented by delegation is really an implementation detail; code outside the class shouldn't care." Whether 'hasGameStarted' is implemented as a predicate or a sub shouldn't matter outside the class. If I'm still missing something, I apologize for belaboring the point. Thanks.

  • Comment on Re^2: Why is the predicate method not available for a MooseX::Privacy protected attribute?