Re:A Conversation with Language Creators: Guido, James, Ande...
by b2gills on Thursday April 11, 2019 @10:43PM
(#19641480)
In Perl6 multiple dispatch is a fundamental feature. Even the infix numeric addition operator is handled by 27 multi subs. (They usually get inlined or even optimised out entirely.)
Here is a quick translation of that second link to Perl6
(Note that I didn't really write any actual code for the `compete` subroutines; it was all handled by the signatures.)
[ Parent
| on HN ]
There are no comments on this comment yet.