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

model: Add terms for bytes #1545

Closed
zrho opened this issue Oct 3, 2024 · 0 comments · Fixed by #1845
Closed

model: Add terms for bytes #1545

zrho opened this issue Oct 3, 2024 · 0 comments · Fixed by #1845
Assignees
Labels
enhancement New feature or request

Comments

@zrho
Copy link
Contributor

zrho commented Oct 3, 2024

As @ss2165 pointed out, it would be useful to have a bytes literal in the hugr model. Once the initial version of the model is merged, this can be added easily. In particular, this would be a new Bytes(&'a [u8]) variant and a BytesType variant in Term.

@zrho zrho added the enhancement New feature or request label Oct 3, 2024
@zrho zrho self-assigned this Oct 3, 2024
github-merge-queue bot pushed a commit that referenced this issue Jan 13, 2025
Adds a term for byte literals to hugr-model.

In the text format, byte literals are represented as base64 encoded
strings.

Closes #1545.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant