Learning rust is fun. I'm definitely going through my "intermediate" phase now. The biggest change I'm learning is how to use traits efficiently. Good use of traits means APIs feel very Rusty. Very Rusty APIs also play nicely with the borrow checker. I like this a lot.
amazing! - those lints would've helped a lot in simplyfying the example here https://docs.rs/merkle-tree-stream/0.1.3/merkle_tree_stream/ … (which I'm going to update now.) Real good stuff!
-
-
Cool! I'm pretty sure that it's possible to write really neat and concise rust code, but you need to know all the cools APIs out there… which is hard without a tool to help you (unless you want to learn them by heart)
-
E.g., I'm pretty sure there's `extend_from_slice` that does the same as your `for c in &a.hash { buf.push(*c); }` but how would you discover this? it's faster to type the loop that look stuff like that up
End of conversation
New conversation -
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.