----- Original Message -----
From: "Brian Ingerson" <ingy@...>
To: "Steve Howell" <showell@...>
Cc: "Oren Ben-Kiki" <orenbk@...>; <yaml-core@...>
Sent: Friday, September 13, 2002 5:28 PM
Subject: Re: [Yaml-core] Think or Dwim
> On 13/09/02 17:25 -0400, Steve Howell wrote:
> > From: "Oren Ben-Kiki" <orenbk@...>
> > > Steve Howell wrote:
> > > > > You don't either. You use '- ' in front of the keys. Really.
> > > > > Otherwise,
> > > > > declarations or no declarations, any YAML tool will feel free to
> > > > > randomize them.
> > > >
> > > > Except that it's a pain in the butt, as I've explained in other emails.
> > >
> > > Having YAML tools randomize your data would be worse :-)
> > So don't run them.
> > > As Mike has pointed out, you can just view this as an explicit syntax. Two
> > > chars aren't expensive syntactically, and you are free to load it into
> > > anything you want, not necessarily a seq of maps. I think that addresses
> > > your main pain.
> > >
> > Here's my challenge to you, Oren. Take this data here, put it in vim, add
> > dashes in front of all the keys, then send it back to me in email.
> > ---
> > Name: Steve Howell
> > Hometown: Columbia, MD
> > Languages: [Python, Ruby, Java]
> > ---
> > First name: Brian
> > Last name: Ingerson
> > Language: Perl
> > ---
> > Last Name: Ganapathy
> > First Name: Vijay
> > Birthplace: India
> > Languages:
> > - English
> > - French
> > I bet you don't accept the challenge. It's beneath you. It's a pain in the
> > butt. What intelligent human being wants to do work that a computer could
> > just as easily?
> I think Oren's view is that you are doing something Non-YAML (although
> useful, IMO). But I'd agree that it isn't YAML-endorsed behaviour. You
> couldn't expect Why and me to support it. (Although I do ;)
So, we've come full circle then. Thank you for your quick response, Brian.
Oren must still be insert mode.
As I said earlier...
> > If I'm writing a YAML app that, say, departs from core YAML in its
> > ordering of
> > hash keys, do I predeclare my intent to preserve ordering in the code,
> > or in the data?
So, yeah, of course it isn't YAML-endorsed behavior. And Oren and I agree on
But it's still a pain in the butt.