Skip to content

De/serialize De/serializer Traits #565

@krakow10

Description

@krakow10

Taking inspiration from serde, rbx-dom could define RbxSerialize, RbxSerializer, RbxDeserialize, RbxDeserializer traits as an interface between rbx_dom_weak and rbx_binary / rbx_xml. These would perhaps include member functions to read/write the different chunk types, or property types, or however the best way to make it is. Idea; try deferred prop chunks.

I can imagine several benefits:

Do you think this idea has any substance? The main advantage would be reusing deserialization code and sharing Dom code with rbx_dom_strong, perhaps even having a single generic Dom<Instance> type with StrongInstance and WeakInstance. I thought I'd share my thoughts before exploring this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions