greglook / blocks

Clojure content-addressable data storage.
The Unlicense
113 stars 6 forks source link

Protocol for lazy block source #17

Closed greglook closed 6 years ago

greglook commented 6 years ago

Instead of relying on lazy blocks' source function providing a stream when called with zero or two args, it would be better to implement a protocol with more explicit methods, which could fall back to assuming the source was a stream-returning function.