Skip to content

Any reason for the following behavior? #581

Answered by perlpunk
ashmaroli asked this question in Q&A
Discussion options

You must be logged in to vote

ruby psych implements YAML 1.1. https://perlpunk.github.io/yaml-test-schema/schemas.html
0001 - 0007 are read as octal numbers. 0008 and 0009 can't be octal, so they are resolved as a string. When dumping again, I guess they are quoted to make clear that they are strings, but the quotes wouldn't be strictly required.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hsbt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #472 on September 16, 2022 02:01.