develooper Front page | perl.perl6.language | Postings from October 2005

Re: Translitteration and combining strings and array references

Thread Previous | Thread Next
From:
TSa
Date:
October 19, 2005 04:48
Subject:
Re: Translitteration and combining strings and array references
HaloO,

Luke Palmer wrote:
> It looks nicer if you use the indirect object form:
> 
>     trans "string": [
>         <h e> => "0",
>     ];

Given the right interpretation this just looks like
a typed label selection in a multi method.

   multi trans
   {
       Str $x: ...; return;

       Int $x: ...; return;

       ...; return;
   }

Is this definitional form supported? To me it nicely
unifies the indirect object syntax---and postfix colon
in general---with labels.
-- 

Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About