Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

PRTv3 #1

Open
petervaro opened this issue Jun 16, 2017 · 0 comments
Open

PRTv3 #1

petervaro opened this issue Jun 16, 2017 · 0 comments

Comments

@petervaro
Copy link
Contributor

Proposed Enhancements (PRT v3.0)

For faster and more language independent behaviour, the attribute name should
not be stored as a string, but as an integer. This approach gives greater
freedom for dialect implementers, like redefining the same name-number
depending on the identifier (scoping). But since JS and JSON are not supporting
the ability to have integers as keys, and in some languages having a hash-map is
a difficulty, attributes should be an array of fixed length arrays, as follows:

attribute      ::= <array of attribute_pairs>
attribute_pair ::= unsigned integer, string

eg.

[0, [[0, "#"]], null];
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant