Skip Menu |
Report information
Id: 1039
Status: resolved
Priority: 0/
Queue: perl5

Owner: Nobody
Requestors: abigail [at] delanet.com
Cc:
AdminCc:

Operating System: (no value)
PatchStatus: (no value)
Severity: none
Type: docs
Perl Version: (no value)
Fixed In: (no value)



From: abigail [...] delanet.com
Date: Mon, 26 Jul 1999 17:50:56 -0400
To: tchrist [...] perl.com
Cc: The Perl Porters Mailing List <perl5-porters [...] perl.org>
Subject: Re: next stages for real prototypes
Download (untitled) / with headers
text/plain 583b
Could we find a different term for 'named parameters'? It already has a meaning (mostly outside of Perl), and its use in discussing prototypes is confusing. Python, for instance, has named parameters, where you can define a function: def func (spam, eggs = 6): something And then call it like: func (eggs = 17, spam = 12) One can easily simulate this in Perl, using hashes, and doing something like '%arg = @_' as the first statement in the sub. (Tk simulated named parameters.) Of course, you would lose all the benefits prototypes can give you. Abigail


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org