Closed casey closed 4 years ago
Thanks! I will rename these. I haven't yet come across a name that I love (besides maybe Serialize
and Deserialize
but serde
took those). Load
and Store
while not wrong just remind too much of databases. If you want to send it over the network, for example, people don't think of it as "loading and storing" data on the wire.
Names are hard! Another idea is Encode
and Decode
.
Encode
& Decode
it is! Implemented in https://github.com/That3Percent/tree-buf/commit/7dbdfcc7a76f2bf2c34481377c9d031c6612c15c
Rust code often has
std::io::Read
and/orstd::io::Write
in scope, which might conflict withtree_buf::Read
andtree_buff::Write
.Load
andStore
is one possibility that wouldn't conflict.