Function::Parameters in Mojo #2130
david-dot-krupicka
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Although your application classes must inherit from certain classes in most cases (ie, application, controllers, plugins, etc.) Mojolicious doesn't specify what tooling you use to build your classes or create methods. As long as the inheritance tree works and methods are implemented as documented, any tooling should work. Moo(se), Function::Parameters, Moops, etc. (Note: Prototype-based ones might take a little tinkering, but no one asked that here :) ) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Although I don't like keyword
fun
andmethod
as an addition tosub
, the module has certain benefits.If you forget to add some parameter, it fails at compile time. And shifting to
$self
is automatic.Could it be used within Mojo, or is it absolute nonsense? If yes,
has
would need to be somehow adapted.Best regards
David
Beta Was this translation helpful? Give feedback.
All reactions