Skip to content

DRISL: undefined #51

@makew0rld

Description

@makew0rld

(This issue was extracted from hyphacoop/dasl-testing#10)

A potential spec change for DRISL would be to mandate that decoders convert CBOR's undefined to their programming language's representation of null.

For

  • Most decoders in the ecosystem already do this, across languages like JS and Go (ref)
  • It's required to decode historical objects (ref)
  • Decoders outside of the ecosystem (general CBOR) do this, not just in dag-cbor (ref)

Against

  • It makes decoders less strict
  • It makes decoding and encoding asymmetric (since emitting undefined is banned)
  • It's not in the original dag-cbor spec

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions