MooX::...::Late(3pm)
π 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 π
π COPYRIGHT AND LICENSE π
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 wasperl v5.40.1, dated2025-10-05, and that's the MooX::...::Late(3pm) page. periodt. πβ¨π¦
π¦ where this page comes from
- ubuntu resolute: libmoox-strictconstructor-perl 0.013-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoox-strictconstructor-perl 0.013-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms