ubjson / universal-binary-json

Community workspace for the Universal Binary JSON Specification.
115 stars 12 forks source link

Remove sized containers #6

Closed kxepal closed 11 years ago

kxepal commented 12 years ago

The ARRAY and OBJECT types no longer have a length argument; all containers (like JSON) are considered to be unbounded. In the existing spec, this is know as the Streaming support. Both container types begin with their maker character (‘A’ or ‘O’) and are terminated with a standalone ‘E’. Using the numeric child count before made no sense in the context of containers that contain unbounded containers and the like; the paradigm fell apart quickly and added unneeded confusion to the spec (some thought it was a byte count)

ghost commented 11 years ago

Marking as WONTFIX, I feel pretty strongly about the sized containers -- I'll clarify my stance further on Issue #16

ghost commented 11 years ago

Re-opening, @kxepal clarified the errors of my thinking on #16

SUMMARY (so I don't forget later)

ghost commented 11 years ago

ACCEPTED

Merged into Draft 9 spec: http://ubjson.org/type-reference/