Perl::C...zyBuild(3)

πŸ“¦
version 1.05 Β· 2 versions
, in fedora 43

πŸ’… 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>

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