New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hyper-adding does not respect hash typedness in Rakudo #3149
Comments
From @masak<masak> r: class A {}; my %h{A} = A.new => 2; my %h2{A} = %h >>+>> 40; say %h2 |
From @lizmatOn May 28, 2013, at 8:34 PM, Carl Mäsak (via RT) <perl6-bugs-followup@perl.org> wrote:
Feels like this in essence is the same as .clone not being able to clone a typed hash. Liz |
The RT System itself - Status changed from 'new' to 'open' |
From @masakLiz (>):
Yes, at least for some of the simpler cases. After I submitted the ticket, this relevant discussion took place: <masak> pmichaud: hm. question is, if I %h1 >>+<< $h2, and the hashes To make this concrete, consider this code: class Left {} my $l = Left.new; my %l{Left} = $l => 1, $b => 1; say (%l <<+>> $r).elems; # 1, because intersection (S03:4377) So far so good, but if the hyper-op result of a typed hash is to be a (%l <<+>> $r) has keytype (Left & Right) We've distanced ourselves from thinking in terms of junctional types Wishing I had more ideas how to create solid semantics for this corner |
From @diakopter14:27 <diakopter> m: class A {}; my %h{A} = A.new => 2; my %h2{A} = %h >>+>> 40; say %h2 |
@diakopter - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#118227 (status was 'resolved')
Searchable as RT118227$
The text was updated successfully, but these errors were encountered: