certik / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

Improve the syntax of the new API to prevent unintuitive behavior #208

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
One of the nice things about the new API is that it lets you easily modify 
nodes, e.g.:

foo["x"] = 5;

However, this currently causes the following behavior (see Issue 207):

Node a;
a = foo{"x"];
// ...
a = foo["y'];  // <-- this line is the same as foo["x"] = foo["y"], which 
modifies the document

This is unintuitive. It would be nice to support the former behavior but 
prevent the latter.

Original issue reported on code.google.com by jbe...@gmail.com on 7 Jun 2013 at 9:41

GoogleCodeExporter commented 9 years ago
Issue 207 has been merged into this issue.

Original comment by jbe...@gmail.com on 7 Jun 2013 at 9:41