Replies: 2 comments
-
One thing I like about KDL when compared to YAML in particular is that types are explicit and unambiguous. That you don't generally have to think about parsing rules in order to get something right, and typos are relatively easy to find and correct. I feel like doing these sorts of strings might introduce such ambiguity. Aside from the possible confusion around numbers or bool or null, I see the potential for some strange results if you decide to put spaces in your unquoted strings. Because they'll be treated as multiple values, even though a naive reader might think they're dealing with regular key value pairs. |
Beta Was this translation helpful? Give feedback.
-
That would be a great addition to KDL as I think you should only quote to resolve ambiguity instead of requiring the verbosity of I understand that it's potentially more confusing with strings (though wouldn't raise to the level of the infamous old |
Beta Was this translation helpful? Give feedback.
-
The idea here would be to allow bare strings, using the identifier syntax
and then you could have these parse as the same thing:
thoughts?
Beta Was this translation helpful? Give feedback.
All reactions