Skip to content

Add invalid identifier syntax object properties support #150

Description

@kossnocorp

Currently, object properties all must have valid identifier syntax, but it is often required to have properties with whitespaces (obj["hello world"]) or beginning with numbers (obj["0issues"]).

Come up with a syntax that would allow that.

I come up with few options worth exploring (there should be more):

  • TypeScript style { "hello world": true }.
  • Rust style with r# kind of prefix (it doesn't really work like that in Rust, but worth exploring).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    • Status
      Should

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions