Skip Menu |
Report information
Id: 127767
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: allbery.b [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: LTA error about unknown named parameters: should say what they were passed to
From: Brandon Allbery <allbery.b [...] gmail.com>
To: rakudobug [...] perl.org
Date: Tue, 22 Mar 2016 21:32:11 -0400
Download (untitled) / with headers
text/plain 1009b
I had intended to send this 2 months ago (whoops) but got buried in inbox...


On Mon, Jan 25, 2016 at 2:07 PM, Brandon Allbery <allbery.b@gmail.com> wrote:
> On Mon, Jan 25, 2016 at 2:42 PM, Carl Mäsak <cmasak@gmail.com> wrote:
>>
>> >> my %h; say 'false' if !%h<a>:exists;
>> > Unexpected named parameter 'exists' passed
>
> By the way, is it me or would it be a lot more appropriate and helpful if
> this error said *what* it was passed to?

As it turns out, while one would naïvely expect :exists to have been applied to postcircumfix:<< < > >>, it was in fact applied to prefix:<!>. Quite a bit of confusion would have been avoided if the error had said so.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
Download (untitled) / with headers
text/plain 212b
Still present today on rakudo 89470a: <Zoffix> m: my %h; say 'false' if !%h<a>:exists; <camelia> rakudo-moar 89470a: OUTPUT«Unexpected named parameter 'exists' passed␤ in block <unit> at <tmp> line 1␤␤»


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