That was a good idea. Thanks!
I think that the syntactical overhead would be acceptable, I just have to put some more thought into it to see if there is anything I am missing.
Update: After giving it a bit more thought I think I will try a different approach. The extra square brackets does not conform with how people expect argument passing to be performed in Perl and some might therefore find it confusing. I will instead try an approach where the named arguments has must contain a special key marking it as an named arguments hash. Like this:
my_func( { key => 'value', ..... $NAMED_ARGS => '' } );
I think that might be a better solution since people can pass parameters just like they normally would, but get the option of passing them by name if they are inclinded to do so.
In reply to Re^6: Adding attributes to values?
by oyse
in thread Adding attributes to values?
by oyse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |