Perl::...icitISA(3pm)

πŸŽ€ NAME πŸŽ€

Perl::Critic::Policy::ClassHierarchies::ProhibitExplicitISA β€” okay so this is the policy that says β€œemploy use parent instead of @ISA,” and yes bestie, it’s giving class-hierarchy glow-up πŸ’…. It lives in the User Contributed Perl Documentation zone, which is the manual name, mwah ✨.

🌸 AFFILIATION 🌸

This Policy is part of the core Perl::Critic distribution. Like, it ships with the main-character distribution itself πŸ‘‘.

πŸ’– DESCRIPTION πŸ’–

Conway recommends employing use parent qw(Foo) instead of the usual our @ISA = qw(Foo) because the former happens at compile time and the latter at runtime. The parent pragma also automatically loads Foo for you, so you save a line of easily-forgotten code. Iconic behavior, honestly πŸ¦‹.

The original version of this policy recommended base instead of parent, which is now obsolete. So yeah, base is giving deprecated energy β€” not the move anymore πŸ™ˆ.

✨ CONFIGURATION ✨

This Policy is not configurable except for the standard options. That’s it, that’s the config tea 🍡.

πŸ‘‘ AUTHOR πŸ‘‘

Chris Dolan <cdolan@cpan.org> β€” wrote this one, slay πŸ’œ.

Copyright (c) 2006-2022 Chris Dolan.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


Okay bye bestie β€” this page’s source/version is perl v5.42.0, and the date is 2024-10-23. Obsessed, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from