From: David Vallner Date: 2006-08-25T06:24:11+09:00 Subject: Re: writing objects to files F. Senault wrote: > Le 24 ao�t 2006 � 04:20, James Edward Gray II a �crit : > >> On Aug 23, 2006, at 9:14 PM, Marc Heiler wrote: >> >>> Let me followup: >>> >>> When to use Marshal, when to use yaml? >>> Does one of the two have a big advantage over the other? >> Marshal is C pretty fast, but it writes binary files that are not >> human readable. YAML is plain text, but not as zippy. > > And Marshal is not guaranteed to produce files compatible between > different versions of Ruby, while YAML is. > -And- the YAML format is actually an open specification, so you get the added value of being able to read the same file in other programming languages - I have mild doubts there are parsers for whatever Marshal outputs for anything but Ruby. David Vallner