How subroutine signatures work in Perl 6

More from: | Opensource.com |
0

In the first article in this series comparing Perl 5 to Perl 6, we looked into some of the issues you might encounter when migrating code into Perl 6. In the second article, we examined how garbage collection works in Perl 6, and in the third article, we looked at how containers replaced references in Perl 6. Here in the fourth article, we will focus on (subroutine) signatures in Perl 6 and how they differ from those in Perl 5.

Experimental signatures in Perl 5

If you’re migrating from Perl 5 code to Perl 6, you’re probably not using the experimental signature feature that became available in Perl 5.20 or any of the older CPAN modules like signatures, Function::Parameters, or

(...)

Read full article » https://opensource.com/article/18/9/signatures-perl-6


About | Opensource.com |

Opensource.com publishes stories about creating, adopting, and sharing open source solutions. Join the Opensource.com community and learn more about how the open source way is improving technologies, education, business, government, health, law, entertainment, humanitarian efforts, and more.

»Twitter: @opensourceway »Facebook: @opensourceway