On Thu, Mar 03, 2005 at 11:25:04AM -0800, Larry Wall wrote:
: Well, hey, we've said that any object can behave as a hash of its
: public accessors, so it really don't matter which way they write it.

I guess another practical difference is that if you say

    $*OS<nonesuch>

you get an undefined value, whereas if you say

    $*OS.nonesuch

it throws an exception.  Though I suppose you could always say:

    $*OS.?nonesuch

instead to force it to undef if the method can't be found.  But that's
getting kind of cluttery, and I still like the hash notation for its
visual pill.  It lets you focus in on the parameter name and sort
of ignore where its coming from.  The important thing to the user is
the "intsize", and not the fact that it had to be looked up in some
particular architecture object.

Larry

Reply via email to