Function Signatures Compared - Perl6, Perl5.20 and Sub::Sig

45 minutes



The missing subroutine signatures in Perl - i.e. the ability to define the sub's arguments directly after the name - are a matter of discussions for many years already

Perl 6 provides a model and Perl 5.20 introduced one experimental feature to do so.

We will give an overview of the features and compare a third approach called called Sub::Sig.

Discussed topics are

- positional parameters
- named parameters
- type constraints
- free constraints
- performance
- backwards compatibility
- life introspection
- Documentation and POD generation
- IDE Support