An Idea for Aliases

Ingy dot Net <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <CAHJtQJ46_hyd7x75QJwo5QgsYzvOCXuw3Sste==i=SEtjqA_7A@mail.gmail.com>
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

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.