From: John Wilger Date: 2004-11-24T12:30:11+09:00 Subject: Re: Marshal vs. YAML vs. something else (Re: Most popular wiki in Ruby seeks kind maintainer) What's wrong with good old fashined XML? Isn't this sort of thing what XML was designed for? On Wed, 24 Nov 2004 12:07:07 +0900, Francis Hwang wrote: > > > > On Nov 23, 2004, at 9:41 PM, Lothar Scholz wrote: > > > Hello Francis, > > > > FH> More generally, let me ask: What formats are people using to > > persist > > FH> Ruby objects to disk? What are pluses and minuses? I can't figure > > out > > FH> when I should use something like YAML and when I should use the > > Marshal > > FH> module and if there's anything else out there that people are > > using, > > FH> I'm probably going to get sort of confused but should probably hear > > FH> about them anyway. > > > > If you want a readable object file that can edited by a human > > (configuration file) use YAML otherwise use Marshal. > > > > You can read YAML file also with Python, Perl und PHP applications > > > > Why wouldn't I just use YAML all the time? Are there certain types of > classes that aren't going to turn into YAML well? Stability issues with > YAML libs? (I've mostly used Marshal in the past, so pardon if my YAML > questions are naive.) > > > > Francis Hwang > http://fhwang.net/ > > -- Regards, John Wilger ----------- Alice came to a fork in the road. "Which road do I take?" she asked. "Where do you want to go?" responded the Cheshire cat. "I don't know," Alice answered. "Then," said the cat, "it doesn't matter." - Lewis Carrol, Alice in Wonderland