[Catalyst] YAML vs. *
Matt S Trout
dbix-class at trout.me.uk
Fri Jun 9 19:17:42 CEST 2006
Nilson Santos Figueiredo Junior wrote:
> On 6/9/06, Thomas Nagel <me at thomasnagel.com> wrote:
>> Maybe a better error reporting may improve the condition but YAML is not
>> that easy for someone who is used to edit Apache- and ini-style
>> configuration on a daily basis ...
>
> It's not supposed to look familiar to people used to other formats.
> It's just like Perl or Python or Ruby. They're not languages supposed
> to look familiar to traditional languages.
>
> Anyway, I'm starting to think that the best way to handle this issue
> would be to make ConfigLoader smart enough to load anything you throw
> at it, maybe with some filename/extension conventions. So, if it finds
> "myapp.yml" that's what it loads, the same for "myapp.xml",
> "myapp.ini", and so on.
If you were to read the ConfigLoader docs you'd discover that's what it
already does.
> I just think I'd like to keep using YAML in a hassle-free way, but
> people who prefer other formats should be able to achieve it too.
> Instead of trying to define a new default format, I think it would be
> saner to follow the usual "Catalyst way of thinkinh" and make it
> easier to use whatever you want.
We already did that. What we're discussing here is whether YAML should remain
the default.
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst
mailing list