MooseX...::Fast(3pm)

πŸ“¦
version 0.009032 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… MooseX...::Fast(3pm) β€” the ✨adopt✨ era

okay bestie, gather round, because this one is a little chaotic in the best way 🫢. This page lives in the User Contributed Perl Documentation and it goes by MooseX...::Fast(3pm) (yes the name is literally truncated with dots, it's giving "I ran out of room in the header", iconic honestly πŸ’€).


✨ NAME ✨

MooseX::Adopt::Class::Accessor::Fast β€” Hijack Class::Accessor::Fast in %INC; πŸ’…

Like. That's the whole job description. It hijacks. On purpose. Consensually. We'll get to that.


πŸ¦‹ SYNOPSYS πŸ¦‹

(keeping the original spelling bestie, no notes, it's part of the lore)

use MooseX::Adopt::Class::Accessor::Fast;
use CAF::Using::Module;
#that's it! JustWorks
not me reading #that's it! JustWorks and genuinely tearing up 😭 the confidence. the brevity. the audacity. periodt.

🌸 DESCRIPTION 🌸

so here's the tea β˜•. This module attempts to hijack Class::Accessor::Fast in %INC and swap it out for MooseX::Emulate::Class::Accessor::Fast. That's the whole bit. It reaches into %INC, grabs the entry for Class::Accessor::Fast, and goes "no bestie, we're someone else now" 🧚✨.

⚠️ THE IMPORTANT PART, DO NOT SKIP THIS: make sure it is loaded before the classes you have that use Class::Accessor::Fast. Order matters, fr fr. If your CAF-using classes load first, the hijack has nothing to hijack and you're just standing there like πŸ™ˆ.

It is meant as a tool to help you migrate your project from Class::Accessor::Fast, to MooseX::Emulate::Class::Accessor::Fast and ultimately, to Moose. πŸ‘‘

So like: it's a glow-up pipeline. Step one, pretend. Step two, the emulation layer. Step three, full Moose main character energy. Slay πŸ’œ.


πŸ‘€ SEE ALSO πŸ‘€

  • Moose β€” the final form, the endgame, the moment
  • Class::Accessor::Fast β€” the ex, the thing we're moving on from
  • MooseX::Emulate::Class::Accessor::Fast β€” the situationship in the middle, the bridge, lowkey the hero of this story

πŸŽ€ AUTHORS πŸŽ€

  • Matt S Trout
  • Guillermo Roditi (groditi) <groditi@cpan.org>

absolute legends, no cap 🫑


πŸ“œ LICENSE πŸ“œ

You may distribute this code under the same terms as Perl itself.

read it, know it, respect it bestie πŸ’–

and that's the whole page!! πŸ¦‹βœ¨ documented by perl v5.36.0, dated 2022-12-12, which is basically ancient history in internet years but the vibes? still immaculate. mwah πŸ’…πŸ“

πŸ“¦ where this page comes from