http://www.perlmonks.org?node_id=461980


in reply to Re^2: YAML newbie help
in thread YAML newbie help

Indeed, answering my own question after reading more of the long, but well-written specification: a more concise, but equivalent version, is of course:
- date: 2005-06-01 team: [ Jack, Jill, Joe ] boss: Clara - date: 2005-06-02 team: [ Harry, Hillary, Howie ] boss: Victoria
Even more concise, each day can be made to fit on one line:
- { date: 2005-06-01, team: [ Harry, Hillary, Howie ], boss: Clara + } - { date: 2005-06-02, team: [ Jack, Jill, Joe ], boss: Victor +ia }
which makes it more readable as a table.

I wonder if you can simplify even further, by factoring out the hash keys? Something on the order of:

# INCORRECT YAML SYNTAX - { date:, team:, boss: } - { 2005-06-01, [ Harry, Hillary, Howie ], Clara } - { 2005-06-02, [ Jack, Jill, Joe ], Victoria }
Probably not.