Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redefine the core module return type to flatten/deduplicate some data #248

Open
JeremyRubin opened this issue Oct 29, 2022 · 0 comments
Open
Labels
enhancement New feature or request needs scoping

Comments

@JeremyRubin
Copy link
Collaborator

Presently, a module has a return type of Object.

It might be nice if instead it returned a SapioCompilationType (or something) which could have some top-level deduplicated data structures (such as schemas for continuation points) to keep the returned output easier to read / more compact for consumers.

E.g.,

struct ContinuationPoint {
    /* */
   schema: SchemaIndex
}

struct SapioCompilationType {
  schemas: BTreeMap<SchemaIndex, Schema>,
  object:  Object
}
@ProofOfKeags ProofOfKeags added enhancement New feature or request needs scoping labels Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs scoping
Projects
None yet
Development

No branches or pull requests

2 participants