3 ms·
> But you forget (someone came by with cookies) to actually shrink the backing array and also to change "top". Someone could come by with cookies while I'm wri
by robalni 4y ago
> But you forget (someone came by with cookies) to actually shrink the backing array and also to change "top".
Someone could come by with cookies while I'm writing a private function too. This is more of a reason for having a function for doing something. Is the reason to make those variables private then to tell the programmer that there is a function that changes them and that you have to look through all the functions of the class before you touch them to see if there is a function that does what you need?
- deleted 4y ago[deleted]