logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Perl::Critic::Policy::ClassHierarchies::ProhibitExplicitISA - Employ "use parent" instead of "@ISA".

Affiliation

       This Policy is part of the core Perl::Critic distribution.

Author

       Chris Dolan <cdolan@cpan.org>

Configuration

       This Policy is not configurable except for the standard options.

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.

       The original version of this policy recommended base instead of parent, which is now obsolete.

Name

       Perl::Critic::Policy::ClassHierarchies::ProhibitExplicitISA - Employ "use parent" instead of "@ISA".

See Also