Skip to content

do not implicitly serialize the Option and Result containers#8

Merged
nz merged 1 commit intomainfrom
nz/serialize-error
Mar 2, 2026
Merged

do not implicitly serialize the Option and Result containers#8
nz merged 1 commit intomainfrom
nz/serialize-error

Conversation

@nz
Copy link
Copy Markdown
Member

@nz nz commented Mar 2, 2026

Closes #7

It does not make sense to serialize the outer Option or Result. The whole idea for this library is that the inner values must be accessed correctly, and once that has been done, the programmer has strong guarantees of correctness. That means throwing errors as early as possible, including a clear refusal to serialize unwrapped Option and Result.

@nz nz merged commit 333b1ba into main Mar 2, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

Option should refuse to serialize to_json

2 participants