Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^13: rough approximation to pattern matching using local (Multi Subs)

by raiph (Deacon)
on Feb 09, 2015 at 07:22 UTC ( [id://1116004]=note: print w/replies, xml ) Need Help??


in reply to Re^12: rough approximation to pattern matching using local (Multi Subs)
in thread rough approximation to pattern matching using local

As explained in another comment in this thread, multisub dispatch is generally compile-time resolution. (Aiui public multimethod dispatch is, in contrast, always run-time.) There's no need to add explicit types to the call args. Overall the P6 design is in much better shape than you are imagining.

Imo one can usefully view Perl 6 as a compiled language with static nominal typing and pattern matching that judiciously blends in some dynamic options. If that doesn't make sense to you, please check out Jonathan's new slide deck "Beyond dynamic vs static".

Thanks for engaging me; hopefully we'll have some more productive exchanges this year. :)

  • Comment on Re^13: rough approximation to pattern matching using local (Multi Subs)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1116004]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-24 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found