A
arcadiorubiogarcia
Hi all,
I'm quite new to Ruby. One of the things I try to get when I learn a
new language are naming conventions. I hate to write, for instance,
Java code that looks like C++.
My question is: are Ruby's aliases intended for helping beginners
coming from other languages, or you are truly free to choose any of
the provided alternatives. For example:
is Enumerable#collect preferred over Enumerable#map
or is Array#length preferred over Array#size ?
Maybe this is a silly topic, but I haven't seen it explained anywhere.
Thanks is advance
I'm quite new to Ruby. One of the things I try to get when I learn a
new language are naming conventions. I hate to write, for instance,
Java code that looks like C++.
My question is: are Ruby's aliases intended for helping beginners
coming from other languages, or you are truly free to choose any of
the provided alternatives. For example:
is Enumerable#collect preferred over Enumerable#map
or is Array#length preferred over Array#size ?
Maybe this is a silly topic, but I haven't seen it explained anywhere.
Thanks is advance