Fwd: Possible to disable/rename meta() method

[email protected] ("Cory Watson")
Newsgroups perl.moose
Message-ID <[email protected]>
Oops, missed the list and only bugged Sartak. ;)

---------- Forwarded message ----------
From: Cory Watson <[email protected]>
Date: Wed, Jan 7, 2009 at 7:52 AM
Subject: Re: Possible to disable/rename meta() method
To: Sartak <[email protected]>


On Wed, Jan 7, 2009 at 6:35 AM, Sartak <[email protected]> wrote:

<snip>


> > How much of CPAN will it break if/when switched off ...
>
> The fix for CPAN modules is easy: instead of using $package->meta or
> Class::MOP::Class->initialize($package), use
> Class::MOP::get_metaclass_by_name($package).
>
> Also, it'll only break if you actually rename or don't install ->meta,
> so it's not going to break any back compat. It'll only break if you
> use a naughty MooseX, and it will generally break spectacularly.
>

Naughty?  (referenced below)

There's no reason not to do this. I'll get started on the branch.


Sorry to be dense, but what reason is there _to_ do this?  Tom's comment of
not adding methods seems reasonable, but ripping out ->meta?

I'm not asking to be obtuse, more because I want to understand why my use of
->meta might be bad. Is there some reason that using it is "naughty"?  It's
my favorite part of Moose. ;)

-- 
Cory 'G' Watson
http://www.onemogin.com



-- 
Cory 'G' Watson
http://www.onemogin.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.