MooseX...::Class(3pm)

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

πŸ’– MooseX::StrictConstructor::Trait::Class β€” a Perl manual page, but make it fashion πŸ’–

okay bestie, sit down, hydrate, because we're reading a perl manual page together and honestly? it's a short one, we can do this. this one ships as part of the User Contributed Perl Documentation and lives at MooseX...::Class(3pm) β€” the ... is just the terminal being dramatic about a long name, iykyk. ✨


🌸 NAME 🌸

MooseX::StrictConstructor::Trait::Class β€” it's a role whose whole entire job is making immutable constructors strict. that's it. that's the girl. πŸ’…


πŸŽ€ VERSION πŸŽ€

version 0.21 β€” she's vintage, she's stable, she ate. πŸ‘‘


✨ DESCRIPTION ✨

so here's the tea, and it's genuinely simple for once:

this role wraps _inline_BUILDALL() β€” which it borrows from Moose::Meta::Class β€” so that immutable classes have a strict constructor. 🫢

that's the whole plot. one function, wrapped, so your immutable classes stop letting randos pass in whatever attributes they feel like. no cap. πŸ”₯


πŸ¦‹ SUPPORT πŸ¦‹

if you find a bug (and you might, she's only human-ish, she's a Perl module), you can submit it right here:

https://github.com/moose/MooseX-StrictConstructor/issues

also!! the author is usually active on IRC under the nick autarch at:

irc://irc.perl.org

so if the issue tracker is giving ✨unresponsive✨ energy, you can literally just go say hi on IRC. iconic behavior honestly. 🌈


πŸ“š SOURCE πŸ“š

the source code repository for MooseX::StrictConstructor lives at:

https://github.com/moose/MooseX-StrictConstructor

go look, go read, go vibe. πŸ‘€


🌟 AUTHOR 🌟

Dave Rolsky <autarch@urth.org> β€” the main character who wrote this. πŸ’œ


This software is Copyright (c) 2007 - 2017 by Dave Rolsky.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)

The full text of the license can be found in the LICENSE file included with this distribution.

bestie, for real, go read the LICENSE file if you're planning on redistributing this. it's short, it's friendly, it's literally included in the distribution. no excuses. πŸŽ€

and that's the whole page!! short king energy, we love a concise manpage. πŸ¦‹

this was written for perl v5.34.0 and dated 2022-06-15 β€” so when you cite her, cite her with the date, like the queen she is. periodt. πŸ’…βœ¨πŸŒΈ