5 ms·
> you can see c.size() and think "this is the size of the collection" If you see collection.size(), you don't even need to think; the meaning is right there in
by chimprich 10y ago
> you can see c.size() and think "this is the size of the collection"
If you see collection.size(), you don't even need to think; the meaning is right there in your field of vision and you don't need to dedicate one part of your extremely limited short-term memory to remembering what c stands for. I can't see any advantage to shortening it to c, apart from saving a trivial amount of typing.