From: Brian I. <in...@tt...> - 2004-06-27 21:17:12
|
On 27/06/04 23:57 +0300, Oren Ben-Kiki wrote: > On Sunday 27 June 2004 23:29, Brian Ingerson wrote: > > What we've decided is that it is *ok* for a YAML parser to throw an error > > if a *simple key* exceeds 1024 chars. This is not much of a usage > > restriction at all. Emitters should just quote mapping keys longer than > > 1024 to ensure that any parser can handle it. > > Nit: It isn't quoting that does the trick; instead, you need to prefix the key > with "? ". It can then be unquoted and as long as you like. The idea is for > the parser to know this is a key _before_ it reads through 1GB of > quoted/plain/whatever data to discover there's a ": " at the end. Haha. I knew I wasn't quite right, but I also *knew* Oren would correct me. Thanks. Cheers, Brian |