You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#2137 adds an assert_eq builtin function which is more efficient than usage of the assert() keyword. It isn't very ergonomic for developers however as it must be imported from the stdlib explicitly.
The usual way to do this is via a prelude that gets imported automatically to every program.
First step would be to add a prelude file to stdlib and then have it only import the relevant items, then given that the stdlib is always available, the compiler will automatically include the prelude imports into every module.
Problem
#2137 adds an
assert_eq
builtin function which is more efficient than usage of theassert()
keyword. It isn't very ergonomic for developers however as it must be imported from the stdlib explicitly.Happy Case
In an ideal situation we would have a list of stdlib functions which are imported into each Noir file by default.
An example list could be:
assert_eq
println
Alternatives Considered
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: