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
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
<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»
p6rt
added
the
LTA
Less Than Awesome; typically an error message that could be better
label
Jan 5, 2020
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.
The error mentions the precedence problem now:
$ ./rakudo-m -e 'my %h; say "false" if !%h<a>:exists;'
Precedence issue with ! and :exists, perhaps you meant :!exists?
in block <unit> at -e line 1
$ ./rakudo-m -e 'my %h; say "false" if !(%h<a>:exists);'
false
Tagging testneeded. (Should probably be added as a test for Rakudo, since we want to check the error message.)
Migrated from rt.perl.org#127767 (status was 'new')
Searchable as RT127767$
The text was updated successfully, but these errors were encountered: