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

What are the guarantees of Schema? #189

Open
jamesmunns opened this issue Nov 24, 2024 · 0 comments
Open

What are the guarantees of Schema? #189

jamesmunns opened this issue Nov 24, 2024 · 0 comments

Comments

@jamesmunns
Copy link
Owner

re: the guarantees of Schema, I'm actually not sure what the answer should be for this.

In my opinion, it MUST match "what is on the wire", so [[T; R]; C] OR [T; R * C] would be "acceptable", but &[T] would NOT be. But I'm not sure if [[T; R]; C] is "more right" (it matches the type, or at least the interface to the type), or if [T; R * C] is "more right" (it matches what the serializer/deserializer does, and the internal representation of the type in memory).

In my opinion, we can limit the scope to "within Postcard's data model", which is why I think either of the two "good" cases are acceptable.

Really, a driving cause right now is that "postcard-dyn must work", but I haven't formed opinions on the further details.

Originally posted by @jamesmunns in #181 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant