Some Smalltalk about Ruby Loops
SMRTR summary
A programmer coming from Python discovers that Ruby loops work through message passing rather than traditional loop syntax. Instead of controlling iterations with `for` loops, Ruby sends messages like `:times` to objects, allowing each object to handle the iteration itself. This approach, inherited from Smalltalk's "protocol over syntax" philosophy, treats method calls as messages sent between objects. The design encourages more idiomatic Ruby code where objects have greater autonomy in determining their behavior.
SMRTR provides this summary for quick context. The original article belongs to Lobsters.
Read the original article