yaml / yaml-spec

YAML Specification
http://yaml.org/spec/
348 stars 53 forks source link

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

Open anatoly-scherbakov opened 2 years ago

anatoly-scherbakov commented 2 years ago

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 commented 2 years ago

https://github.com/json-ld/yaml-ld/issues/51 is related

perlpunk commented 2 years ago

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 commented 1 month ago

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.