----- Original Message ---- > From: Michael G Schwern <schw...@pobox.com> > > Gabor Szabo wrote: > > I recall that we talked about a possibility to emit yamlish but the last > > thing > > I remember was the discussion about lower or upper case names... > > Was there a progress in that subject ? > > tl;dr version: Yes, its resolved at least to Ovid and I's satisfaction who > were the two most worried about it. > > Ovid and I talked about it first thing at the latest QA hackathon. Ovid, > correct me if I'm wrong but... > > 1) /^[a-z]/ is fine for official keys. Everything else is unofficial. This > avoids the silly "Hungarian I" problem. > > 2) There was a fight at QA1 about whether unofficial keys should always be > prefixed with an identifier saying where they came from to avoid collisions > (Ovid's position) and that they should not be prefixed to allow overlap of > commonly agreed on, yet unofficial, keys (my position). > > At QA2 we finally communicated that A) we can't usefully enforce a prefix and > B) what Ovid really wanted was to ensure that he can define keys and guarantee > their meaning to him. End result: add a prefix if you want to protect your > private key, and if you don't don't.
Yeah, I can deal with all of this. I think the main thing is that any YAML diagnostics which accept arbitrary keys added will have to: a. Reject any key matching /^[[:lower:]]/ (or is /^[a-z]/ really preferred here?) b. For now, just let people add arbitrary data for diagnostics. --- have: 3 want: 4 file: t/foo.t line: 17 user: ??? ... Start small. Grow later. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog - http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6