p5-mop-redux icon indicating copy to clipboard operation
p5-mop-redux copied to clipboard

methods: (also) take named parameters

Open maettu opened this issue 11 years ago • 3 comments

Please implement that methods can take not only lists of parameters but also named parameters.

maettu avatar Oct 17 '13 20:10 maettu

I think that Perl 6 style named parameters would be good, they do increase the complexity of the sig parsing though so I would like to wait until the core sub-sig lands so we can piggyback as much as possible on that.

stevan avatar Oct 17 '13 20:10 stevan

I think this should not be part of the first round of changes, because it will require a lot more effort - it needs changes not just to method signature parsing, but also at the places that methods are called, and that's a much higher level of complexity.

doy avatar Oct 17 '13 21:10 doy

Agreed, this can be a "later" thing.

On Oct 17, 2013, at 5:37 PM, Jesse Luehrs [email protected] wrote:

I think this should not be part of the first round of changes, because it will require a lot more effort - it needs changes not just to method signature parsing, but also at the places that methods are called, and that's a much higher level of complexity.

— Reply to this email directly or view it on GitHub.

stevan avatar Oct 17 '13 21:10 stevan