Hi Michael,

* Michael G Schwern <[EMAIL PROTECTED]> [2007-09-01 19:32]:
> On 9/1/07, Fergal Daly <[EMAIL PROTECTED]> wrote:
>> On a tangent, I think using quotes is important otherwise you
>> end up output like
>>
>>       wanted: elbow
>>       found: elbow
>>
>> when what you really needed was
>>
>>       wanted: 'elbow'
>>       found: 'elbow '
> 
> No need to quote everything, just when there's leading or
> trailing whitespace to clarify. YAML.pm does that
> automatically. In fact, I don't think you can express leading
> or trailing whitespace without quotes in YAML.

Is it possible to force this in tandem? Ie. when one of the keys
has to be quoted, the other is always quoted also? Because I’d
hate to see this:

      wanted: elbow
      found: 'elbow '

For simple cases like this one it’s livable, but if the data gets
more complex, then comparing a raw string with a quoted one will
unnecessarily sprain people’s brains.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

Reply via email to