* Paul Hoffman <[EMAIL PROTECTED]> [2003-09-19 15:06]:
> I'd like to get people's thoughts on this proposed module,
It's neat to have, although I suspect it won't be terribly useful.
> especially its name (Class::* doesn't seem right; Hash::Methods
> wouldn't be bad).
I'm thinking Class::Struct::FromHash, myself.
> Any hash ref retrieved for a Hash::ObjectLike instance is
> automatically blessed into Hash::ObjectLike (unless it's
> already blessed as something else).
Neato. Ideally the methods will be lvalue-subs, too, so you can
say something like
$h->foo = 2;
It should of course also take
$h->foo(2);
for the same effect.
> No distinction is made between non-existent elements and those
> are present but undefined.
I don't like this. It is easily possible to tell the object
whether it should croak on access to non-existent keys.
> Furthermore, there's no way to delete an element without
> resorting to C<< delete $h->{foo} >>.
Neither do I like this limitation, but I can't think of a
consistent way to add such to the interface.
--
Regards,
Aristotle
"If you can't laugh at yourself, you don't take life seriously enough."