We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Originally, Array didn't have runtime-borrow capability and I made the (hasty) decision to base the Array struct on using Cell<RawArray<T>>.
Array
Cell<RawArray<T>>
It is clear that it makes far more sense to use RefCell now, both from a semantic and performance basis. The explicit borrowflag can also be removed.
RefCell
borrowflag
Source: interpreter/src/array.rs:42 Book: booksrc/chapter-interp-arrays.md
interpreter/src/array.rs:42
booksrc/chapter-interp-arrays.md
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Originally, Array didn't have runtime-borrow capability and I made the (hasty) decision to base the
Array
struct on usingCell<RawArray<T>>
.It is clear that it makes far more sense to use
RefCell
now, both from a semantic and performance basis. The explicitborrowflag
can also be removed.Source:
interpreter/src/array.rs:42
Book:
booksrc/chapter-interp-arrays.md
The text was updated successfully, but these errors were encountered: