ingydotnet / yaml-libyaml-pm

Perl Binding to libyaml
http://search.cpan.org/dist/YAML-LibYAML/
33 stars 37 forks source link

Support standard tags !!str, !!map and !!seq #67

Closed perlpunk closed 6 years ago

perlpunk commented 6 years ago

These are standard tags in YAML 1.1 and YAML::XS currently dies when it finds these tags.

!!str now does the right thing and returns scalars like !!str true as strings. !!map and !!seq don't introduce any new behaviour, it just doesn't die anymore.

Also, !!int and !!float should be supported, but we have to decide how it should behave with things like !!int "23.5" or !!float true. ruamel, pyyaml, js-yaml and snakeyaml treat this as an error.

perlpunk commented 6 years ago

@nawglan sorry, I accientally clicked on the review button ;-)

perlpunk commented 6 years ago

Applied, YAML-LibYAML-0.66_002.tar.gz Released