greglook / clj-cbor

Native Clojure CBOR codec implementation.
The Unlicense
70 stars 7 forks source link

Fix asymmetry in encode/decode API #7

Closed greglook closed 6 years ago

greglook commented 6 years ago

Rather than having encode write a single item and decode read a lazy sequence, the semantics should be changed to include encode-all and decode-all methods that operate on sequences. This implies a breaking change to decode such that it always returns a single item.

greglook commented 6 years ago

787d7e94c002739490a2b7a29c2ba87e6ac0c7a3