Options object for the Noir class #2943
signorecello
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
Not a problem, just a devex suggestion to keep everything nice and tidy while allowing experienced devs to unleash some Noir superpowers:
Add an “options” object to the Noir construtor, like
new Noir(backend, circuit, { numThreads: 4 })
. This allows to pass options such asnumThreads
(can have a default value in the construtor likeconstructor(backend, circuit, { numThreads = 1 })
). It will also allow to pass other stuff later on if neededHappy Case
For beginners or simple programs, we get:
for the superpowers, we get the options object:
Alternatives Considered
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
Beta Was this translation helpful? Give feedback.
All reactions