introspection (and Perl 6)

Bruce Richardson itsbruce at workshy.org
Mon Jan 21 23:50:06 GMT 2008


On Mon, Jan 21, 2008 at 09:04:45PM +0000, Aaron Trevena wrote:
> >   $class.^can('foo');
> >
> > That's actually shorthand for:
> >
> >   $class.HOW.can('foo');
> 
> Kinda neat. :)
> 
> I don't mind the hat as long as it's shorthand for golfers that I'll
> never need to use or read in production code.

Maybe you will never use it, but if it exists then somebody else will
and so you *will* see it in production code.

Except that this is Perl 6 we're talking about, so probably not.

-- 
Bruce

I object to intellect without discipline.  I object to power without
constructive purpose. -- Spock


More information about the london.pm mailing list