# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #63828] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=63828 >
<ruoso> std: sub foo(1,2,3) {...} <p6eval> std 25816: OUTPUT«ok 00:02 35m» <jnthn> Heh <ruoso> jnthn, is that already known? <jnthn> I didn't even know that was valid syntax... :-P <moritz_> rakudo: multi foo($ where 1) { 1 }, multi foo($ where 2) { 2 }; foo($_) for 1..3 <p6eval> rakudo 087e29: OUTPUT«No applicable candidates found to dispatch to for 'foo' [...] <ruoso> masak, I guess so... * masak submits <jnthn> Does the spec say you can do that? <moritz_> dunno <masak> screw the spec! STD says it's ok. :) <moritz_> never seen that syntax <ruoso> jnthn, well, it's a fantastic syntax... <ruoso> much better than "$ where 1" <moritz_> ruoso: it's a lot like haskellian pattern matching <masak> jnthn: I remember requesting that syntax on NPW2008. :) <ruoso> specially for the multi-reduce web.pm dispatcher <masak> indeed. <jnthn> I agree it's nice syntax, just wondered ifit's spec'd. <ruoso> implement it, we push it in later ;) <masak> agreed. :) <jnthn> Will look at STD.pm and see what it parses it as, anyway... <jnthn> I'm a little surprised it does, but in theory it's easy to get Rakudo to handle it.