Skip to content

nightly-2024-07-25: feat: Implement format strings in the comptime interpreter (#5596)

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 25 Jul 02:19
· 917 commits to master since this release
fd7002c
# Description

## Problem\*

Resolves https://github.com/noir-lang/noir/issues/5482

## Summary\*

Implements format strings in the interpreter.

These are a bit weird since we immediately interpolate them and thus
have no need to actually distinguish them from regular strings. They are
also lowered into runtime code as normal strings.

## Additional Context

## Documentation\*

Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.

# PR Checklist\*

- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.

---------

Co-authored-by: Michael J Klein <[email protected]>