Hacker News new | ask | show | jobs
by eCa 1310 days ago
In the latest Perl5 you can define signatures like normal people[1], but it has been available as an experimental feature since 5.20[2].

[1] https://perldoc.perl.org/perlsub#Signatures

[2] https://www.effectiveperlprogramming.com/2015/04/use-v5-20-s...

1 comments

That's a huge quality of life improvement, and I didn't realize it's been around for so long! I will have to give this a try.