Re: [julia-users] sizehint( set, n ) returns Dict

2014-05-18 Thread Ivar Nesje
https://github.com/JuliaLang/julia/pull/6883 kl. 00:35:41 UTC+2 mandag 19. mai 2014 skrev Stefan Karpinski følgende: > > Yes, that's an oversight. It should return s instead. > > > On Sun, May 18, 2014 at 5:30 PM, Ivar Nesje > > wrote: > >> Probably because nobody noticed/cared before you did. It

Re: [julia-users] sizehint( set, n ) returns Dict

2014-05-18 Thread Stefan Karpinski
Yes, that's an oversight. It should return s instead. On Sun, May 18, 2014 at 5:30 PM, Ivar Nesje wrote: > Probably because nobody noticed/cared before you did. It seems likely that > this could happen by accident. > > See: https://github.com/JuliaLang/julia/blob/master/base/set.jl#L29 > >

[julia-users] sizehint( set, n ) returns Dict

2014-05-18 Thread Ivar Nesje
Probably because nobody noticed/cared before you did. It seems likely that this could happen by accident. See: https://github.com/JuliaLang/julia/blob/master/base/set.jl#L29

[julia-users] sizehint( set, n ) returns Dict

2014-05-18 Thread Andrew Dabrowski
Any particular reason that when s is a Set, sizehint( s, n ) returns s.dict rather than s?