3 ms·
But it is because you do not use a yaml serializer. If you use a template you have to put "" for strings.
by azaras 7y ago
But it is because you do not use a yaml serializer.
If you use a template you have to put "" for strings.
- stingraycharles 7y agoI have been using yaml for years (mostly as a user, not as a dev) and I’ve never heard anyone mention a yaml serializer. Is this common practice? Wouldnt the yaml serializer have the same locality issues, or is it more strict?
- bmn__ 7y agoA serialiser is just a program/library that takes a data structure and emits YAML. GP criticises GGP for putting the value no manually into the file and thus causing a bug instead of letting a piece of specialised software deal with the correct form (here: quoted string).
- eyelidlessness 7y agoIf your human-writable format requires a serializer to avoid unexpected types, it's not human-writable. If your human-readable format requires special cases for certain keywords but treats others as strings, it's not human-readable.
- yjftsjthsd-h 7y ago> If your human-writable format requires a serializer to avoid unexpected types, it's not human-writable. That sounds like there are no human-writable formats. > If your human-readable format requires special cases for certain keywords but treats others as strings, it's not human-readable. That I can 100% support; sometimes needing to quote strings is a recipe for disaster.
- eyelidlessness 7y ago> That sounds like there are no human-writable formats. I'm not sure why it sounds that way. There are formats where types are explicit, either by stating them or by their delimiters or by their contents.
- keymone 7y agoNo, it is because that part of yaml spec is plain dumb.