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

remove plain objects #147

Merged
merged 1 commit into from
Jan 28, 2019
Merged

remove plain objects #147

merged 1 commit into from
Jan 28, 2019

Conversation

bergos
Copy link
Member

@bergos bergos commented Jan 25, 2019

This PR removes leftovers from the plain objects idea as proposed in #104. Initial there was the idea to have plain objects without any functions for Term and Quad, but it never made it into the spec and based on some experience using implementations without plain objects, the lack of this feature doesn't cause any problems. But adding plain objects to the spec could cause a lot of problems:

  • It would add much more complexity
    • Seven additional interfaces would be required (Term + subclasses, Quad)
    • Other interfaces would get more complex as they may or may not support these new interfaces
  • It opens the door for a new serialization
    • People my start passing it around as JSON strings
    • Forces others to support an additional format
    • Media Type
    • ...
  • JSON-LD is an existing standard for JSON + plain objects
    • flattened Quads are easy to write and parse
  • It doesn't forbid the usage of plain objects for internal structures

@bergos bergos merged commit cad676b into rdfjs:master Jan 28, 2019
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

Successfully merging this pull request may close these issues.

6 participants