Realization: Unique ownership is often thought of as a Rust-specific constraint on data, but most languages enforce that constraint for serializable objects.
-
-
I... don't think I've seen a serializer that actually errors out on shared nodes? Not even necessarily JSON, most of them, for any format. Usually the serializer would unshare nodes, and cycle detection would be opt-in or something.
-
Oh, that's true, usually serializers need only DAGs. Though if you don't supply a tree then your data doesn't technically round trip wrt object identity
- 4 more replies
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.