Perl::C...zyBuild(3)
π Perl::Critic::Policy::Moose::ProhibitLazyBuild π
okay bestie, welcome to Perl::C...zyBuild(3) β yeah the header truncates it, don't worry about it, the full name is right there and it's iconic.
β¨ NAME β¨
Perl::Critic::Policy::Moose::ProhibitLazyBuild β avoid lazy_build π«
πΈ VERSION πΈ
version 1.05 β¨
π¦ DESCRIPTION π¦
so. lazy_build => 1. bestie. it seemed like a good idea at the time, and honestly we've all been there π, but it creates problems. like, actual problems. (see here: https://metacpan.org/pod/distribution/Moose/lib/Moose/Manual/BestPractices.pod#Avoid-lazy_build)
this policy will complain if it finds lazy_build => 1 in your code. and it should. no cap. π
π AFFILIATION π
this policy is part of Perl::Critic::Moose. that's the family. that's the vibe. π«Ά
π SUPPORT π
got bugs? we love that for you (we don't). submit them through the RT bug tracker π:
http://rt.cpan.org/Public/Dist/Display.html?Name=Perl-Critic-Moose
or, if you'd rather slide into the inbox directly:
bug-perl-critic-moose@rt.cpan.org
and ngl, I am also usually active on IRC as 'drolsky' on irc://irc.perl.org β come say hi π
π AUTHORS π
the legends themselves, no cap:
- Elliot Shank
<perl@galumph.com> - Dave Rolsky
<autarch@urth.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2008 - 2016 by Elliot Shank.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. periodt. β¨
fr fr that's the whole page, every option-free, warning-packed crumb of it. go forth and don't write lazy_build => 1. your future self will thank you π§
and that's a wrap on this perl v5.42.0 page from 2025-07-25 β thanks for reading bestie, mwah ππΈ
π¦ where this page comes from
- fedora 43: perl-Perl-Critic-Moose 1.05-27.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms