From: Iain Barnett Date: 2010-07-07T18:05:50+09:00 Subject: Re: Hashes don't allow preceding commas by design? --Apple-Mail-1--461378131 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 7 Jul 2010, at 09:33, Josh Cheek wrote: >=20 > I don't know the reasoning for that decision [quirk?] but commas at = the end > of lines should not hinder commenting out lines >=20 >=20 >=20 > a =3D { > 1 =3D> 2 , > 3 =3D> 4 , > 5 =3D> 6 , > } > a # =3D> {5=3D>6, 1=3D>2, 3=3D>4} >=20 >=20 >=20 > a =3D { > # 1 =3D> 2 , > 3 =3D> 4 , > 5 =3D> 6 , > } > a # =3D> {5=3D>6, 3=3D>4} >=20 >=20 >=20 > a =3D { > 1 =3D> 2 , > # 3 =3D> 4 , > 5 =3D> 6 , > } > a # =3D> {5=3D>6, 1=3D>2} >=20 >=20 >=20 > a =3D { > 1 =3D> 2 , > 3 =3D> 4 , > # 5 =3D> 6 , > } > a # =3D> {1=3D>2, 3=3D>4} If you're allowed a comma for the last line then it's not a problem. = Thanks for letting me know, too many years working with languages that = don't like that meant I didn't try it :) Iain --Apple-Mail-1--461378131--