From: Ingy d. N. <in...@in...> - 2012-11-05 06:04:20
|
Greetings, I had an idea today. It probably would apply to YAML2 more than YAML. I just wanted to throw it out there, and see if people can shoot it down. The idea is to turn aliases into plain scalars, and the normal convention would be to load them as references to anchors. So things work as before under normal dump/load. Thus * is no longer a special syntax char and can start any plain scalar. This might be extended as the normal way to do other kinds of fancy impliciting like file includes: content: *include file.yaml Whether it gets used in new ways or not, I just think that *foo can be parsed as an implicit scalar. Can people see holes in that logic? Ingy |