On Monday 26 February 2007 13:50, Michael G Schwern wrote:

> But what if isa() is broken or has side effects, hmm?

That's not the caller's problem.  Fix the broken code.  Don't break more code 
trying to work around bugs.

That little mantra could have solved a whole lot of this mess.

> And what if its lying to me and I *really* want to know what methods are
> *really* available and not autoloaded?

Then you have at least two problems, and at least one of them is that you're 
using the wrong language.

> IT SHOULD NOT BE THIS COMPLICATED TO IDENTIFY THE HERITAGE OF AN OBJECT!

It should almost never be necessary to identify the heritage of an object.  
This ain't structural subtyping.  Perl 5.9.4 has UNIVERSAL::DOES() for a 
reason.

(To stave off all the "Buh... buh... but I used blessed hashes and I need to 
know if it's a hash!", I say "Keyed index overloading has worked for over a 
decade.  At some point it would be nice to be able to use it without people 
breaking my objects.")

> Please reconsider autobox.

I second this request.

-- c

Reply via email to