Skip to content
This repository was archived by the owner on Dec 28, 2017. It is now read-only.

Proposal rejected. #16

Closed
ljharb opened this issue Mar 31, 2016 · 1 comment
Closed

Proposal rejected. #16

ljharb opened this issue Mar 31, 2016 · 1 comment

Comments

@ljharb
Copy link
Collaborator

ljharb commented Mar 31, 2016

In the March 2016 TC39 meeting, I brought this proposal to the committee.

It was thoroughly rejected, for a number of reasons. Primarily, that toJSON is a legacy artifact, and a better approach is to use a custom replacer that, for example, checks [Symbol.toStringTag] and dispatches to appropriate serializations.

In addition, the committee did not want to bless the toJSON approach by adding what would be an incomplete representation - one that would not obviate the need for developers to define their own serialization format and revivification logic.

(tc39/ecma262#506)

ljharb added a commit that referenced this issue Mar 31, 2016
@DavidBruant
Copy link
Owner

Sounds good, thanks for all the time you spent on this @ljharb and @zloirock ! :-)

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants