-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add Noir/Rust syntax example section #22
Conversation
noir_by_example/README.md
Outdated
|
||
## Running main | ||
|
||
- `nargo execute` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated instructions to run check and add Prover.toml values
noir_by_example/README.md
Outdated
- Noir example in [(Quasi) Quote](https://noir-lang.org/docs/dev/noir/concepts/comptime#lowering) | ||
- Rust example in [macros](https://doc.rust-lang.org/rust-by-example/macros.html) | ||
|
||
Example functions can be added to [main.nr](./noir/src/main.nr) with a 1:1 corresponding [main.rs](./rust/src/main.rs) equivalent. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no main.nr or main.rs files at these locations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was from old structure. Removed.
15c5864
to
8ed4bdf
Compare
Increased section depth of all sections (to have just one top level |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nit but otherwise good 👍
Co-authored-by: josh crites <[email protected]>
Description
Problem*
More closely comparing/contrasting the syntax of Noir against Rust, by examples. Starting with simple_macros and loops.
Related AztecProtocol/dev-rel#405
Resolves AztecProtocol/dev-rel#406
Summary*
Putting Noir/Rust side-by-side, and focus on syntax and any design considerations.
Additional Context
PR Checklist*
cargo fmt
on default settings.