Perl::...totypes(3pm)

πŸ’… NAME πŸ’…

okay bestie, you're reading Perl::...totypes(3pm) from the User Contributed Perl Documentation, and this policy is Perl::Critic::Policy::Subroutines::ProhibitSubroutinePrototypes β€” don't write sub my_function (@@) {}. That's the assignment. ✨

🫢 AFFILIATION 🫢

This Policy is part of the core Perl::Critic distribution. So it's not a random side quest β€” it ships with the main character. πŸ‘‘

😭 DESCRIPTION 😭

Okay so real talk: contrary to common belief, subroutine prototypes do not enable compile-time checks for proper arguments. Like, they are not giving what people think they're giving. πŸ’€

So don't use them. Periodt. 🚫

πŸŽ€ CONFIGURATION πŸŽ€

This Policy is not configurable except for the standard options. No secret knobs, no extra settings, no custom slay β€” just the standard options and that's it. πŸ’…

🌸 AUTHOR 🌸

Jeffrey Ryan Thalhammer <jeff@imaginative-software.com> β€” iconic. 🫢

Copyright (c) 2005-2011 Imaginative Software Systems. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module.


Bye bestie πŸ’œ β€” this page comes from perl v5.42.0, dated 2024-10-23, and its footer label is Perl::...totypes(3pm).

πŸ“¦ where this page comes from