The Queue constructors seem to be lagging the newer convention in Julia. In
older versions of Julia it was not possible to do Queue{ByteString}() or
Vector{ByteString}().On Thu, Feb 4, 2016 at 5:56 PM, Michael Landis <[email protected]> wrote: > ah, Queue's don't need to be typed, the type is a parameter to the > constructor. Parens, not braces. So, why are Vectors defined as > Vector{ByteString}(vecLength)? Where is the syntactical consistency? > > On Thursday, February 4, 2016 at 2:47:52 PM UTC-8, Yichao Yu wrote: >> >> On Thu, Feb 4, 2016 at 5:43 PM, Michael Landis <[email protected]> >> wrote: >> > so ... what's the syntax for creating an empty Queue{ByteString}? >> > >> > qbs = Queue{ByteString}([]) # also produces convert errors >> >> I think the document tells you exactly that. >> https://github.com/JuliaLang/DataStructures.jl#stack-and-queue >> >> Queue(ByteString) seems to work. >> >> > >> > >> >> >> > >> >
