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

Darmstadt.pm

Not scheduled yet.

20 minutes

Any

English 

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