You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Migrated from rt.perl.org#1039 (status was 'resolved')
Searchable as RT1039$
The text was updated successfully, but these errors were encountered: