Closed solbloch closed 5 years ago
Cool!
So you've added new methods parallel to the existing methods, I didn't think of that :p This is interesting: for the same structure, we could have both LIFO and FIFO access. But is it really what we want?
I'm not sure what the next-item
method is for, I'd guess it's for the iterators. If that's the case, we would need an iterator for LIFO order as well.
About the PR: I would separate this patch set into 3 commits at least:
With the re-indentation in the way it's not so obvious to see what has changed and what hasn't.
Change the ring-buffer class to be LIFO (Last In First Out).
I added LIFO-like methods, but didn't yet remove the FIFO methods. I think they are funky and should be removed, pending approval.