From: "Ara.T.Howard" Date: 2004-07-04T01:22:45+09:00 Subject: Re: Symbols & yaml (was Re: SOT (slightly offtopic): General OOP question) On Sat, 3 Jul 2004, daz wrote: > > Ara.T.Howard wrote: >> >> ... for a while i was a fan of using symbols as hash keys, >> but now use only strings. this is mostly due to the wonderful >> ease of using yaml files as configuration files ... > > > Sorry, I just noticed this and it almost spoilt > my enjoyment of an iced biscuit. > > Have you noticed that '_why'.capitalize has improved Symbol#to_yaml ? > > require 'yaml' > puts :asym.to_yaml > > #-> ruby 1.9.0 (2004-06-25) > #-> --- :asym > > ## - was ... > > #-> ruby 1.8.0 (2003-08-30) > #-> --- !ruby/sym asym > > > If there's another reason for preferring strings, I hope I > won't be trying to drink a glass of milk when I read it. > > ;-) > > daz i had NOT noticed that. thanks for the heads up! -a -- =============================================================================== | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | A flower falls, even though we love it; | and a weed grows, even though we do not love it. | --Dogen ===============================================================================