[perl #57410] [TODO] syntactic sugar for named arguments: "key" => value - Add to PDD19 or deprecate

Andrew Whitworth via RT parrotbug-followup at parrotcode.org
Sat Dec 6 14:52:05 UTC 2008


On Sat Nov 29 16:14:14 2008, Whiteknight wrote:
> On Sat, Nov 29, 2008 at 1:54 PM, Klaas-Jan Stol via RT
> <parrotbug-followup at parrotcode.org> wrote:
> > Should we keep the syntax:
> >
> > .param int "answer" => a
> >
> > ?
> >
> > I propose to remove it; it's not been documented, and it doesn't add
> > particularly to readability IMHO (the argument-side using arrows, OTOH,
> > is useful I think, and does add to readability, e.g. foo("answer"=>42).
> 
> I'm in favor of removal, personally. I agree that this syntax doesnt
> do anything to help readability.
> 
> --Andrew Whitworth
> 

Okay, I've removed this syntax is r33559. Closing ticket.

-- 
Andrew Whitworth
a.k.a Whiteknight




More information about the parrot-dev mailing list