noir icon indicating copy to clipboard operation
noir copied to clipboard

feat: separating out array and slice types in the AST

Open michaeljklein opened this issue 11 months ago • 2 comments

Description

Replacement for https://github.com/noir-lang/noir/pull/4232. Holding off on closing it to possibly port fixes from it, but wanted to start fresh because this approach is quite different.

Problem*

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

Summary*

Additional Context

Documentation*

Check one:

  • [ ] No documentation needed.
  • [ ] Documentation included in this PR.
  • [ ] [Exceptional Case] Documentation to be submitted in a separate PR.

PR Checklist*

  • [ ] I have tested the changes locally.
  • [ ] I have formatted the changes with Prettier and/or cargo fmt on default settings.

michaeljklein avatar Mar 07 '24 17:03 michaeljklein

Actually, just looked at the error message in that example more closely. It looks like somewhere the argument order for Type::Array was reversed

jfecher avatar Mar 07 '24 18:03 jfecher

@jfecher What do we think about using as_slice() for slice literals rather than &[]. Do we think that syntax will be confusing for users with us not supporting immutable references?

vezenovm avatar Mar 15 '24 19:03 vezenovm

🚀 Deployed on https://65f9ebd020e5b411edfa757a--noir-docs.netlify.app

github-actions[bot] avatar Mar 18 '24 15:03 github-actions[bot]

FYI @noir-lang/developerrelations on Noir doc changes.

github-actions[bot] avatar Mar 19 '24 19:03 github-actions[bot]