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
<colomon> rakudo: my $a = Set.new(1, 2, 3, 4); say ($a <<+>>
Set.new(2, 42)).perl;
<p6eval> rakudo 2c66f9: OUTPUT«{"2" => 2}»
<colomon> okay, that's officially not at all what I expected
<masak> huh?
* masak submits rakudobug
Since Sets are unordered, the exact result of <<+>> probably wouldn't
be guaranteed. But it definitely shouldn't be a hash, it should
probably be a Set with four elements.
S03 says "an upgraded scalar is the only thing that will work for an
unordered type". Thus, as of 2f958fd, hyperoperations on two Sets are
illegal:
$ Set.new(1, 2, 3, 4) <<+>> Set.new(2, 42)
When one argument of a hyperoperator is an unordered data structure, the
other must be scalar
in 'hyper' at line 227:CORE.setting
in main program body at line 1
Migrated from rt.perl.org#79158 (status was 'rejected')
Searchable as RT79158$
The text was updated successfully, but these errors were encountered: