Y
Hacker News
new
|
ask
|
show
|
jobs
by
sparkie
171 days ago
The concept of not storing capacity isn't silly. If you need to reserve space then it's not the appropriate structure, but it's otherwise fine.
However, using an 2-element array to avoid using a struct is silly.