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

Invalid object keys #5

Open
Diggsey opened this issue Jul 27, 2021 · 2 comments
Open

Invalid object keys #5

Diggsey opened this issue Jul 27, 2021 · 2 comments

Comments

@Diggsey
Copy link

Diggsey commented Jul 27, 2021

With #3 closed, there's only really one thing in the JSON data model that you can't represent in Gura, and that's objects with keys that don't conform to the normal requirements.

If Gura intetionally doesn't support this, then it might be a good idea to specify, as part of the spec, what generic serializers/deserializers should do when provided such keys, so that behaviour can be standardised.

eg.

  • Error.
  • Convert to a valid name according to some predefined rules.
  • Something else?
@Genarito
Copy link
Member

You're right, we have some ideas for the next release of the language, which will be focused on development points such as:

  • Optional import for languages or environments where the user doesn't have access to the filesystem
  • Representation for values to improve interoperability (likely this issue)

We'll be discussing this and let you know. If you prefer, you can join our Discord community to get instant feedback

@Genarito
Copy link
Member

Genarito commented Sep 3, 2021

Added #10!

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

2 participants