in reply to Pithy names for accessor styles?

And as long as you're naming things, about the return value from setters? The styles I enumerate in the Alpaca are:

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: Pithy names for accessor styles?
by xdg (Monsignor) on Jan 20, 2006 at 00:08 UTC
    And as long as you're naming things, about the return value from setters?

    It's in the plan, but I see that as an orthogonal decision for what to call the setter in the first place. The choice for what to name them also seemed a little more self-evident: "new_value", "old_value", "self". I hadn't thought of doing success/fail, as I'm also planning on having a user hook that can filter/validate in the setter and die with an error message to indicate failure.

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Re^2: Pithy names for accessor styles?
by Anonymous Monk on Jan 19, 2006 at 23:09 UTC
    Whatever the documention reads, the last bet is probably the safest assumption. Don't trust anything more than you have to. :-)