fastruby / fast-ruby

:dash: Writing Fast Ruby :heart_eyes: -- Collect Common Ruby idioms.
https://github.com/fastruby/fast-ruby
5.67k stars 376 forks source link

use Array#length instead Array#size #58

Closed meinac closed 9 years ago

meinac commented 9 years ago

Because Array is a block of memory so we can talk about the length of the memory and the right way to get the elements count of it is length method. Also size is alias of length so the real name of it length.

JuanitoFatas commented 9 years ago

Thank you very much! Merged as a3ca904.