From: <ti...@ds...> - 2004-02-23 12:50:01
|
----- Original Message -----=20 From: "Zenaan Harkness" <ze...@fr...> To: <yam...@li...> Sent: Monday, February 23, 2004 11:55 AM Subject: Re: [Yaml-core] RE: Proposed Changes to YAML by example > On Mon, 2004-02-23 at 21:49, Zenaan Harkness wrote: > > On Mon, 2004-02-23 at 21:09, Bra=F2o Tich=FD wrote: > > > I realized null key might be also written > > > --- > > > ? : value of nothing > > > ... > > > correct? > > > but it is IMHO still less clear than explicitly written null. > > > on the other hand - when will null keys be really used? > > > AFAIK only python allows None to be key; > > > perl5 doesn't allow anything but strings, ruby and lua do allow anything - > > > but null, i don't know about others. > > > so, python would see None, but everybody else would see something other as > > > it's own null (perhaps !yaml/null or just !python/None ?) > > > and would have to cope with it. > > > am i missing something? > > > > Should it be defined as empty string, or is that somehow different to null? > > > > If so, how would empty string be specified in above example? --- '' : value of an empty string ... > > In fact, to me the above kind of looks like a string of a single space. no, that would be --- ' ' : value of a space ... (or some kind of escape: \x20, "\ ") > But would that be introducing exceptions to otherwise generic rules? > maybe to some rules regarding white space. all following documents should be equivalent (what word is used in yaml lingo?) --- abcd: 1 --- abcd : 1 --- abcd : 1 ... |