• @atimholt@lemmy.world
    link
    fedilink
    71 year ago

    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’.