Thanks for reading!
> One question: did you consider using data []*T in the buffer? If so,
> what made you discount it? It seems a natural way to indicate "empty"
> slots in the slice.
I didn't consider using a []*T at the outset because I assumed that the
Buffer type would still need to be exp
(Back to the OP's blog post)
This is an interesting read, thank you!
One question: did you consider using data []*T in the buffer? If so, what
made you discount it? It seems a natural way to indicate "empty" slots in
the slice.
Another way would be a separate slice of bools for marking wheth