YAML question - substitution


#1

I am trying to create the following:

{ ‘a’ => ‘happy’, ‘b’ => ‘happy birthday’, ‘c’ => ‘happy new year’}

Can YAML do this? I have something like:

a: &first happy
b: *first<<birthday
c: *first.concat(‘new year’)

neither of which work.

Any ideas?


#2

On Dec 8, 2005, at 2:44 PM, Anthony Elizondo wrote:

neither of which work.

Any ideas?

YAML is just a serialization format:

http://yaml.org/refcard.html


Eric H. - removed_email_address@domain.invalid - http://segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com