MooX::...::Late(3pm)

πŸ“¦
version 0.013 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

πŸ’… NAME πŸ’…

ok so listen bestie, this page is about MooX::StrictConstructor::Role::Constructor::Late β€” a role that makes Moo constructors strict, but like… at the END of construction. not during. the end. keep up 🫢

It's from the MooX::...::Late(3pm) page in User Contributed Perl Documentation, and yes the name is a whole mouthful, we don't make the rules πŸ’€


✨ DESCRIPTION ✨

okay so here's the tea πŸ“ β€” this role wraps Method::Generate::Constructor with a lil bit of code, and what that code does is make sure that every argument you passed to the constructor is actually a valid init_args for the class. no sneaky strays allowed. no randos sneaking in through the window. ✨

but here's the iconic part β€” the check happens at the end of construction, not up front. why does that matter, you ask? because it means BUILD methods get a chance to delete parameters first, which exempts those parameters from the strict checks. so your BUILD method can be like "oh that one? not yours, bestie, deleting it πŸ’…" and the strictness vibe check just… moves on. slay.

so like: strict, but with ✨emotional intelligence✨.


πŸ› BUGS πŸ›

found a bug? want a feature? pls pls pls don't suffer in silence 😭 report it on the bugtracker website:

<https://rt.cpan.org/Public/Dist/Display.html?Name=MooX-StrictConstructor>

or, if email is more your thing, you can send it straight to:

bug-MooX-StrictConstructor@rt.cpan.org

(that's <mailto:bug-MooX-StrictConstructor@rt.cpan.org> if you're a hyperlink girlie πŸŽ€)

and when you do submit a bug or a request, pls include a test-file β€” or a patch to an existing test-file β€” that shows off the bug or the feature you want. that's the whole vibe check right there, it makes everything so much faster πŸ™


πŸ‘‘ AUTHOR πŸ‘‘

George Hartzell <hartzell@cpan.org> β€” the main character who wrote this, no cap πŸ’œ


This software is copyright (c) 2013 by George Hartzell.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go off, fr fr 🌈


ngl if you made it to the bottom of this page you're lowkey a legend πŸ’€ this was perl v5.40.1, dated 2025-10-05, and that's the MooX::...::Late(3pm) page. periodt. πŸ’–βœ¨πŸ¦‹
πŸ“¦ where this page comes from