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 are implementing a structure which holds a dynamically-sized view into an array (i.e. array, offset and length). Analogous to slice in Rust, with very similar properties. We can't name it slice as there is already a type called slice in Noir.
Happy Case
It seems, slice in Noir is closer to a list than a slice in Rust.
It has cheap operations of adding elements at the beginning, end and in the middle.
The name is therefore a bit misleading.
Hence, we would propose to use name List for it and make a room for Slice.
Project Impact
None
Impact Context
No response
Workaround
None
Workaround Description
Alternatively, we could extend slice to match Fragment functionality.
Additional Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered:
Problem
We are implementing a structure which holds a dynamically-sized view into an array (i.e. array, offset and length). Analogous to slice in Rust, with very similar properties. We can't name it slice as there is already a type called slice in Noir.
Happy Case
It seems, slice in Noir is closer to a list than a slice in Rust.
It has cheap operations of adding elements at the beginning, end and in the middle.
The name is therefore a bit misleading.
Hence, we would propose to use name
List
for it and make a room forSlice
.Project Impact
None
Impact Context
No response
Workaround
None
Workaround Description
Alternatively, we could extend slice to match Fragment functionality.
Additional Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: