[HN Gopher] Strings in YAML - To quote or not to quote (2018)
___________________________________________________________________
Strings in YAML - To quote or not to quote (2018)
Author : DMell
Score : 21 points
Date : 2023-01-24 20:27 UTC (2 hours ago)
(HTM) web link (blogs.perl.org)
(TXT) w3m dump (blogs.perl.org)
| merlincorey wrote:
| I'm surprised in a discussion of when to quote or not quote with
| YAML the dreaded "yes", "no", "true", "false", "on", and "off"
| booleans didn't come up.
|
| Quoting the article:
|
| > In YAML, you can write a string without quotes, if it doesn't
| have a special meaning.
|
| Yeah, about that...
| [deleted]
| AceJohnny2 wrote:
| it's indeed a big _if_ ;)
|
| What parent refers to, YAML's Norway Problem:
| https://hitchdev.com/strictyaml/why/implicit-typing-removed/
___________________________________________________________________
(page generated 2023-01-24 23:00 UTC)