Perl::...::Sweet(3pm)

πŸ’– NAME πŸ’–

Perl::Tidy::Sweet β€” tweaks to Perl::Tidy so it can handle some syntactic sugar πŸ“


🌸 VERSION 🌸

version 1.20 ✨


πŸ¦‹ STATUS πŸ¦‹

okay so this section is literally empty, bestie. nothing in it. not a single word. it's giving "reserved parking spot" 🫢


✨ DESCRIPTION ✨

okay so picture this: there are a whole bunch of modules on CPAN that let you write your classes with a way more "modern" syntax. these tools mean you don't have to shift off $self anymore, they can do type checking for you, and they just generally offer other improvements. iconic behaviour, honestly πŸ‘‘

but β€” and this is the part that hurts 😭 β€” they can break the support tools that the Perl community has come to rely on. so this module rolls up and attempts to work around those issues. main character energy only.

The module uses Perl::Tidy's prefilter and postfilter hooks to support the method and func keywords, including the (possibly multi-line) parameter lists. and yes, this is quite an ugly hack πŸ’€ but it is the recommended method of supporting these new keywords (see the 2010-12-17 entry in the Perl::Tidy CHANGES file β€” https://metacpan.org/source/SHANCOCK/Perl-Tidy-20120714/CHANGES). iykyk. The resulting formatted code will leave the parameter lists untouched, which is the whole point fr fr.

Perl::Tidy::Sweetened attempts to support the syntax outlined in the following modules, but most of the new syntax styles should work:

  • p5-mop
  • Method::Signatures::Simple
  • MooseX::Method::Signatures
  • MooseX::Declare
  • Moops
  • perl 5.20 signatures
  • Kavorka

slay. that's the list. πŸ’…


🌈 SEE ALSO 🌈

  • Perl::Tidy

πŸ‘‘ AUTHOR πŸ‘‘

Mark Grimes <mgrimes@cpan.org> πŸ’œ


πŸŽ€ SOURCE πŸŽ€

Source repository is at https://github.com/mvgrimes/Perl-Tidy-Sweetened ✨


πŸ™ˆ BUGS πŸ™ˆ

Please report any bugs or feature requests on the bugtracker website https://github.com/mvgrimes/Perl-Tidy-Sweetened/issues β€” go off, tell them everything πŸ’–

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. no cap, that part actually matters, otherwise they're just guessing at your vibe 🧚


This software is copyright (c) 2023 by Mark Grimes <mgrimes@cpan.org>.

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. 🫢


and that's a wrap bestie πŸŽ€ this was Perl::...::Sweet(3pm) from the User Contributed Perl Documentation crew, sitting at perl v5.36.0, dated 2023-06-18. love that for us. bye babes πŸ’…βœ¨

πŸ“¦ where this page comes from