Closed GoogleCodeExporter closed 9 years ago
This is actually fixed in the trunk. The current build (r423) emits:
---
a: &1 a
z: *1
(so it still reorders the map (which is allowed by the YAML spec), but it
simply changes which is the anchor and which is the alias.)
Original comment by jbe...@gmail.com
on 25 Oct 2010 at 3:37
[deleted comment]
Nice!
I must ask, why the anchor is now beeing referenced by the number? Can I still
get the original anchor name?
Original comment by rsvar...@gmail.com
on 25 Oct 2010 at 8:35
The original anchor name isn't part of the representation, so we get rid of it.
This is a conscious decision - according to the YAML spec, you shouldn't rely
on the anchor name for any meaning.
(That said, I do understand how you might want to specify the anchor name when
emitting, so the general emitter allows you to specify anchor/alias names.)
Original comment by jbe...@gmail.com
on 25 Oct 2010 at 9:11
Original issue reported on code.google.com by
rsvar...@gmail.com
on 25 Oct 2010 at 2:51