Heh, found out a cool pattern you can do with traits in Rust.
Had to replace my `Node` struct with a trait because I needed to extend the struct with a bunch of methods.
But traits imply boilerplate. So I'm including a `DefaultNode` struct that implements the `Node` trait 
-
Show this thread
Anyway, here's that pattern in action. Feeling rather pleased about how this will turn out - means we can define (almost) all of Hypercore's structs inside of Hypercore. External modules play ball. Looking forward to landing this! https://github.com/datrs/merkle-tree-stream/pull/7 …
3:39 PM - 15 May 2018
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.