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

Would it be possible to unreserve the @ character in YAML 1.3? #286

Open
anatoly-scherbakov opened this issue May 30, 2022 · 3 comments
Open

Comments

@anatoly-scherbakov
Copy link

YAML-LD initiative, looking forward to express JSON-LD vocabulary in YAML, forces to write something like this:

"@context": https://example.org/context.json
"@type": example:Page

The @-keywords have to be quoted because the @ character is reserved.

Is there any plan to perhaps unreserve that character? Or perhaps there are particular plans how to use it? Thank you!

@VladimirAlexiev
Copy link

json-ld/yaml-ld#51 is related

@perlpunk
Copy link
Member

perlpunk commented Jul 7, 2022

There are no plans to just unreserve that character.
It might get used in the future as a prefix for something like function calls. We only have two reserved chars, they are too precious to just unreserve them :)

@amiika
Copy link

amiika commented Oct 9, 2024

While it's understandable to reserve such characters for future needs, it's crucial to recognize the potential of @ as a versatile and potentially language-independent annotation mechanism for both metadata and functions. It's also just too valuable leave it untouched without a clear plan for its use.

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

No branches or pull requests

4 participants