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
I assumed the .&foo form was just a nicer way of writing foo($_), however they differ in that
the thrown control exception doesn't go far enough in .&foo form and it doesn't actually
return from the routine with things like .&fail and .&return
<Zoffix__> m: sub { 'foo'.&fail; 42 }().^name.say
<camelia> rakudo-moar 64e898: OUTPUT: «foo in sub at <tmp> line 1 in block <unit> at <tmp> line 1Actually thrown at: in sub at <tmp> line 1 in block <unit> at <tmp> line 1»
<Zoffix__> m: sub { fail 'foo'; 42 }().^name.say
<camelia> rakudo-moar 64e898: OUTPUT: «Failure»
Migrated from rt.perl.org#131504 (status was 'new')
Searchable as RT131504$
The text was updated successfully, but these errors were encountered: