I write comment before topic. Please see it.
Current subroutine signatures implementation contains two features which purposes are different
My opinion is that argument count checking by subroutine signature is not fit to Perl because Perl is dynamic language.
Perl is dynamic language, so argument count checking is done in run-time, not in compile time. This damage to performance…
I want to write about subroutine signatures more.
This is previous topic.
I think subroutine signatures don't need arguments count checking
Current subroutine signatures contains tow difference features
- Syntax suger of my ($x, $y) = @_
- Arguments count checking
My opinion is that this two features has different purpose. First is for syntax sugar. Second is for aruments count checking.
I think it is…
I think subroutine signatures don't need arguments count checking,
Subroutine signature should be optimized from performance perspective, not utility.
Arguments count checking is one logic, so it damage run time performance.
And I like simple and compact syntax.
sub foo($x, $y) {
...
}
# same as
sub foo {
my ($x, $y) = @_;
}
sub foo($x = 0, $y = 0) {
...
}
# same as
sub foo {
my ($x, $y) = @_;
$x //= 0;
$y //= 0;
/users/yuki_kimoto/2016/04/index.html
I release Mojolicious::Plugin::AutoRoute 0.22.
Mojolicious::Plugin::AutoRoute(CPAN)
Until now, Mojolicious::Plugin::AutoRoute depended Mojolicious internal structure, but Mojolicious::Plugin::AutoRoute become more stable because this plugin use only public features of Mojolicious. The following is the document of Mojolicious::Plugin::AutoRoute.
Mojolicious::Plugin::AutoRoute is a Mojolicious plugin to create routes automatically./users/yuki_kimoto/2016/04/index.html