We’re a bit inconsistent presently in whether we use
iter; usually the former at the trait/type level, and the latter at the method level. For example, we have
FromIterator, whose sole method is
A recently accepted RFC proposes both to keep trait names grammatically simple and consistent with methods whenever possible.
It’s a minor point, but should we consider using
iter across the board? Or
iterator? Or is today’s mix warranted as a special case?
The main argument for
Iterator at the type/trait level is precedent/familiarity from other languages. And on the other hand, you write the method names far more often, so it makes sense to have them be as short as possible. So there is some justification for today’s state of affairs.