From: Douglas Livingstone Date: 2005-03-21T08:45:07+09:00 Subject: Re: Paul Graham recommends Ruby On Mon, 21 Mar 2005 08:33:18 +0900, Nikolai Weibull wrote: > * Daniel Amelang (Mar 21, 2005 00:30): > > Alternatively, you could make [:] the empty hash constructor. Quite a > > shortcut for an associative array, if I do say so myself :) > > Heh, that was a quite nice solution actually, > nikolai As symbols are often used as keys, how about describing a hash as a 'symbolised array', like so: :[:key => 'value', :foo => 'bar'] or an empty one: :[] Douglas