From: Hal Fulton Date: 2006-06-03T08:25:41+09:00 Subject: Re: An alternative to the class Foo < Struct.new(vars) idiom and SuperStruct Daniel Schierbeck wrote: > Hal Fulton wrote: > >> That's another example of why I would like a data structure >> that 1) had a convenient notation for literals and 2) was >> "like" a Hash, but ordered. > > > Wow, it would be great if we then could use #to_hash to determine > whether an object is a hash, and then not require that the return value > of that method be an instance of Hash. Then we could create an ordered > hash from scratch, and use it all the places we currently use a hash. > > Wait... What is your point? Please elaborate... Hal