3 ms·
It's 10 lines of very obvious code. Isn't that a good thing? Do you really need stack.New<T>()?
by NateDad 12y ago
It's 10 lines of very obvious code. Isn't that a good thing? Do you really need stack.New<T>()?
- swah 12y agoYes, I do think so. Then I could keep thinking about the "business problem" instead of googling for half an hour because I can't believe there is no one reuses a stack in Go. Also, it could be something much more complicated than a stack, like the data structures in the STL... but that point has already been made elsewhere.