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).
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):
{ "hello world": true }.r#kind of prefix (it doesn't really work like that in Rust, but worth exploring).