Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re: next stages for real prototypes #231

Closed
p5pRT opened this issue Jul 26, 1999 · 1 comment
Closed

Re: next stages for real prototypes #231

p5pRT opened this issue Jul 26, 1999 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Jul 26, 1999

Migrated from rt.perl.org#1039 (status was 'resolved')

Searchable as RT1039$

@p5pRT
Copy link
Author

p5pRT commented Jul 26, 1999

From @Abigail

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant