On Tue, Oct 13, 2015 at 05:59:04PM +0200, Elizabeth Mattijsen wrote: > > designers for having a very good reason and i'm curious: what is actually > > this good reason for such a weird behave. > > Well, for one, it is according to spec. :-)
:) > But the real reason, is that you can also use <a> to indicate the > value of a key in a hash: > my %h = a => 42; > dd %h<a>; well .. ok ... i'll deal with it. > > %< class foo id bar > > > That is really a slice on an unnamed hash. So that is ambiguous. an unnamed hash ? does it make sense? > > [ ] i missed the good paragraph of the documentation ? > > [ ] i'm going to do something very stupid ? > > [ ] other, your answer here > > $ 6 'dd %(<a b c d>)’ > Hash % = {:a("b"), :c("d")} > > * i just don't know way i need | in front of % ... it just works but for > > me %() was enought and explicit on what i wanted to get. can someone > > explain ? > > I guess without the |, you would pass a Hash to br. i forgot to send the link. it was built with https://github.com/eiro/p6-Rototo/blob/master/lib/Rototo.pm#L11 > became a list of pairs. Can’t really tell without the br code. But, > fwiw, I don’t think you need the prefix % at all :-) i do 'cause of the signature (*%attrs) thanks for your answer! cya -- Marc Chantreux (eiro on github and freenode) http://eiro.github.com/ http://eiro.github.com/atom.xml "Don't believe everything you read on the Internet" -- Abraham Lincoln