From: "David A. Black" Date: 2005-08-06T00:15:12+09:00 Subject: Re: new block notation Hi -- On Fri, 5 Aug 2005, Trans wrote: >> That's rather drastic. All it needs is a new symbol for literal hashes. >> (I like [| |] myself.) > > Nah, just use the _collection_ brackets for both array and hash. The > parser can tell them apart: > > # array > [ a, b, c ] > > # hash > [ a=>x, b=>y, c=>z ] > [ a: x, b: y, c: z ] I don't like to have to scan visually for a separator in order to know what the [ meant. That seems ad hoc and fragile. David -- David A. Black dblack@wobblini.net