From: Chad Perrin Date: 2011-10-20T00:25:18+09:00 Subject: Re: why doesn't this work? --neYutvxvOLaeuPCA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 19, 2011 at 10:44:37PM +0900, Ammar Ali wrote: >=20 > By the way, you don't need to call Array.new to create a new empty array. > The following is equivalent: >=20 > my_array =3D [] I prefer Array.new for that usage, because (in my opinion) it more clearly communicates the intent of creating a new array waiting to be filled. I prefer to avoid empty array literals for most purposes. Your mileage may vary, I suppose. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --neYutvxvOLaeuPCA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk6e64MACgkQ9mn/Pj01uKVsowCginqmUac6dYtw4XDQiMqflcvX xusAn0rHwxCcrYAhiJyc/OrVPpanpAmO =16Bw -----END PGP SIGNATURE----- --neYutvxvOLaeuPCA--