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

[email protected] ("Andrew Whitworth")
Newsgroups perl.perl6.internals
Message-ID <[email protected]>
On Sat, Nov 29, 2008 at 1:54 PM, Klaas-Jan Stol via RT
<[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.