Ingy döt Net
Ingy döt Net
Ideally you want a way to do string interpolation, combined with enhanced addressability. ``` text: ([^{:forbidden}|{:escaped})+ c: ${:a} | {:b} ``` Without any changes to YAML syntax required. This is...
I'm going to chime in here with a few successive comments. The right way to all functional transformation in YAML is with tags. Every mapping, sequence and scalar has a...
A problem with the last comment solution is that you can't have lists in the container list that don't get flattened. Here's a modification where we explicitly mark the list...
Here we have almost the same thing, but notice we don't have to specify a `!++` tag anymore. ``` #!/usr/bin/env python3 from yaml import * def join(ldr, node): v =...
In this final rendition, we add a couple cool things: ``` #!/usr/bin/env python3 from yaml import * data = { 'seq1': ['aaa', 'bbb'], 'seq2': ['ccc', 'ddd'], } def get_data(ldr, node):...
Now that the [YAML language development team](https://yaml.org/spec/1.2.2/ext/team/) has just released the [YAML specification revision 1.2.2](https://yaml.org/spec/1.2.2/), we are actively working on the next specification and reference implementations. I can't say for...
Some movement is happening here https://github.com/ietf-wg-httpapi/mediatypes/pull/16
Found a couple problems: ``` > require('js-yaml').load("") undefined > require('js-yaml').load("\n") undefined > require('js-yaml').load("\n\n") null > require('js-yaml').load("# hmm") null ```
First off, hash merging is one of those YAML things that is not clearly defined. It is actually in the realm of things that I don't think YAML should define....
Aaron, this is now a failing test. It is best for YAML dumps to having anchors emitted in ascending order (&1 &2 &3). Hope this helps.