Skip to content

Fix wildcard let bindings and add body-less let syntax#351

Merged
arthurpaulino merged 1 commit intomainfrom
ap/aiur-improvements
Mar 27, 2026
Merged

Fix wildcard let bindings and add body-less let syntax#351
arthurpaulino merged 1 commit intomainfrom
ap/aiur-improvements

Conversation

@arthurpaulino
Copy link
Copy Markdown
Member

  • Simplifier no longer drops wildcard let expressions, preserving side effects (constraints, assertions, IO) in circuit code
  • Compiler handles wildcard let patterns in both toIndex and compile
  • Add let pat = trm; and let pat = trm syntax forms that implicitly use () as the continuation body
  • Update call sites to use let _ = instead of let _x =

- Simplifier no longer drops wildcard let expressions, preserving
  side effects (constraints, assertions, IO) in circuit code
- Compiler handles wildcard let patterns in both toIndex and compile
- Add `let pat = trm;` and `let pat = trm` syntax forms that
  implicitly use `()` as the continuation body
- Update call sites to use `let _ =` instead of `let _x =`
@arthurpaulino arthurpaulino enabled auto-merge (squash) March 27, 2026 03:42
@arthurpaulino arthurpaulino merged commit ba63677 into main Mar 27, 2026
14 checks passed
@arthurpaulino arthurpaulino deleted the ap/aiur-improvements branch March 27, 2026 12:32
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.

2 participants