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
We have several functions like std::array::len(myarray) which would be more ergonomic to use if they could be accessed with method syntax myarray.len(). Other examples include std::field::to_le_bytes, to_bits, etc.
Solution
Allow impls for primitives as long as the impl is defined within noir's stdlib or compiler itself.
The text was updated successfully, but these errors were encountered:
Problem
We have several functions like
std::array::len(myarray)
which would be more ergonomic to use if they could be accessed with method syntaxmyarray.len()
. Other examples includestd::field::to_le_bytes
, to_bits, etc.Solution
Allow
impl
s for primitives as long as the impl is defined within noir's stdlib or compiler itself.The text was updated successfully, but these errors were encountered: