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

Improve Date Element to better handle zero-sized Dates #132

Open
FreezyLemon opened this issue Apr 26, 2023 · 0 comments
Open

Improve Date Element to better handle zero-sized Dates #132

FreezyLemon opened this issue Apr 26, 2023 · 0 comments

Comments

@FreezyLemon
Copy link
Contributor

The spec allows zero-sized Date Elements, which are equivalent to a value of 0.

Some improvements were discussed in #128 to allow representing "empty" Date Elements with a zero-sized type on the Rust side.

Another small improvement would be on the serialization side, where the Date is currently always serialized as a uinteger. A Date of "0" could also be represented by an empty Element to save some bytes.

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

No branches or pull requests

1 participant