[Catalyst] YAML vs. *

Nilson Santos Figueiredo Junior acid06 at gmail.com
Fri Jun 9 17:59:38 CEST 2006


On 6/9/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
> What do you all think, then? (/me dons asbestos suit, waits for the holy war
> to start :)

I can't possibly imagine how can anyone *not* understand YAML
dead-simple syntax.

YAML was designed specifically for being able to be read and written
by human beings without much effort. And it accomplishes it nicely,
IMO.

Particularly, Catalyst config files need the ability to express
arbitrary data structures so the only format you suggested which would
satisfy this requirement would be JSON (otherwise you're thinking
about being *really* creative in order to express a hash of hashes
using INI syntax).

However, JSON is still considerably uglier and "dirtier" than YAML.

{
  'View::TT': {
    INCLUDE_PATH: "__path_to('root')__"
  }
}

vs

View::TT:
  INCLUDE_PATH: __path_to('root')__

-Nilson Santos F. Jr.



More information about the Catalyst mailing list