Re: [perl #131681] default values in subsignitures don't work

2017-07-03 Thread Lloyd Fournier via RT
That makes sense. Thank you! On Mon, Jul 3, 2017 at 8:09 PM jn...@jnthn.net via RT < perl6-bugs-follo...@perl.org> wrote: > On Fri, 30 Jun 2017 06:41:35 -0700, lloyd.fo...@gmail.com wrote: > > sub foo( %h ( :$foo = "bar", :$baz) ) { > > %h; > > } > > > > note foo( { :baz } ); #-> {baz => Tru

Re: [perl #131681] default values in subsignitures don't work

2017-07-03 Thread Lloyd Fournier
That makes sense. Thank you! On Mon, Jul 3, 2017 at 8:09 PM jn...@jnthn.net via RT < perl6-bugs-follo...@perl.org> wrote: > On Fri, 30 Jun 2017 06:41:35 -0700, lloyd.fo...@gmail.com wrote: > > sub foo( %h ( :$foo = "bar", :$baz) ) { > > %h; > > } > > > > note foo( { :baz } ); #-> {baz => Tru

[perl #131681] default values in subsignitures don't work

2017-07-03 Thread jn...@jnthn.net via RT
On Fri, 30 Jun 2017 06:41:35 -0700, lloyd.fo...@gmail.com wrote: > sub foo( %h ( :$foo = "bar", :$baz) ) { > %h; > } > > note foo( { :baz } ); #-> {baz => True} > > If it's not an easy fix it might warrant a "not yet implemented" exception. It works correctly. Doing: sub foo( %h ( :$foo = "

[perl #131681] default values in subsignitures don't work

2017-07-03 Thread jn...@jnthn.net via RT
On Fri, 30 Jun 2017 06:41:35 -0700, lloyd.fo...@gmail.com wrote: > sub foo( %h ( :$foo = "bar", :$baz) ) { > %h; > } > > note foo( { :baz } ); #-> {baz => True} > > If it's not an easy fix it might warrant a "not yet implemented" exception. It works correctly. Doing: sub foo( %h ( :$foo = "

[perl #131681] default values in subsignitures don't work

2017-06-30 Thread via RT
# New Ticket Created by Lloyd Fournier # Please include the string: [perl #131681] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131681 > sub foo( %h ( :$foo = "bar", :$baz) ) { %h; } note foo( { :baz } ); #-> {baz => Tr