On Thursday, 10 April 2014 at 13:47:22 UTC, monarch_dodra wrote:
That said, it feels like you are using Appender like a container. Maybe "Array" is a better fit?
It is not really a container in the sense that I add and remove items at random later in the program. The items are added in a loop after initialization (say every single letter of a word). Since it happens very often and there can be loads of items each time, I use appender to fill it up fast and efficiently. What goes in there should not be controlled by the struct itself. It's half container, half buffer / appender.
