I have mixed feelings with design patterns and it comes back to what you say about not implementing it as you have done. People will latch on to the hasNextgetNext and that becomes the pattern. popFrontfront would be seen as deviation from the pattern.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I love the iterator pattern. D defines 5 interfaces and a number of capabilities that an algorithm can require and provides the algorithms.
I have mixed feelings with design patterns and it comes back to what you say about not implementing it as you have done. People will latch on to the
hasNext
getNext
and that becomes the pattern.popFront
front
would be seen as deviation from the pattern.