News for hackers. Stuff that matters.
Re:Writing a custom iterator in modern C++ by jhayward on Monday December 21, 2020 @11:00AM (#25496053)
> I think you are arguing that iterators are "primarily" for iteration

I really wonder why people put up with something named this way then. "That fool thinks iterators are for iteration!"

Clarity of abstraction and good naming are important, unless the practitioners are masochists.

Re:Writing a custom iterator in modern C++ by gpderetta on Tuesday December 22, 2020 @09:08AM (#25506377)
Cursor would be a better name probably, but I wouldn't say the name is misleading, as iteration is an important use case.