Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escapable list delimiters #332

Open
ljacqu opened this issue Jul 3, 2023 · 0 comments
Open

Escapable list delimiters #332

ljacqu opened this issue Jul 3, 2023 · 0 comments

Comments

@ljacqu
Copy link
Member

ljacqu commented Jul 3, 2023

The inline array properties have a separator so that multiple elements can be stored as a simple text, but what if one of those elements needs to have the separator as text? There should be an escaping mechanism. I think the easiest would be to escape separators by doubling them (à la Excel "").
I don't want to use backslashes because the resource's format (like YAML) might already require it to be escaped, and we then have to decide what happens if a backslashes is not followed by the separator.

Edit: Downside to "double-escaping" is if the character appears three times, it's ambiguous which one acts as escaped and which one is a delimiter, respectively under this system, it's impossible to start a string with the delimiter char.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant