On Tue, 05 Sep 2017 03:19:45 -0700, zef...@fysh.org wrote: > > (3, Nil) > (3 Nil) > > List.new(3, Nil) > (3 (Any)) > > It is possible (as it should be) to put Nil into a List, if it's > constructed using the comma operator. But constructing it via the > List.new() constructor replaces the Nil with Any. I think this is a bug > in List.new(): it should accept any argument, including Nil, and put it > into a List. > > -zefram
Also spotting similar behaviour with Map.new. Since (unlike a Hash), it's not creating containers for its things, I'd expect it to retain the Nil as Nil. m: dd Map.new: ("z", Nil) rakudo-moar f925c6: OUTPUT: «Map.new((:z(Any)))»