you are viewing a single comment's thread
view the rest of the comments
[–] 7 points 3 years ago (2 children)

I like range-based for loops. You can just name the iterator after the object that it actually is. Have to be a little careful though, if the container is named a plural noun, and the natural name is the same word minus the easy-to-miss 's'.

  • source
  • hideshow 2 child comments