Iterators: Signs of Weakness in Object-Oriented Languages https://www.pipeline.com/~hbaker1/Iterator.html (argues against iterators due to the hidden state)
miniblog.
Related Posts
I've been reading about the object-capability model as seen in the E programming language.
It reminds me of dependency injection, but used pervasively. Rather than calling static methods, you pass in object arguments and call methods in them.
A neat IDE feature from Typescript 5.2: it completes object field names even if the previous field doesn't end with a comma!
Syntax recovery is super helpful sometimes.
I still find it odd that non-OO languages use the term "object" in their docs. I've seen it in both C and Emacs Lisp.
Example:
