[go-nuts] Re: [generics] notes on adding generics to a package

2021-02-09 Thread Ben Burkert
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

[go-nuts] Re: [generics] notes on adding generics to a package

2021-02-08 Thread Brian Candler
(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