3 ms·
Pinned Places
- Ygg2 2y agoContinuations from https://news.ycombinator.com/item?id=41029287 https://news.ycombinator.com/item?id=41029287
- dang 2y agoThanks! Macroexpanded: Pin - https://news.ycombinator.com/item?id=41029287 https://news.ycombinator.com/item?id=41029287 - July 2024 (121 comments)
- robinsonrc 2y agoThis is a great way to really improve things while also maintaining backwards compatibility. I do hope we see something along these lines making it into the next (post 2024) edition
- weinzierl 2y agoI always found the C syntax to define a chain of pointers with various permutations of constness pretty confusing. Rust is much better in that regard, but if I am totally honest it isn't completely logical to me in Rust either. Especially I find it confusing that the term mutable reference is sometimes used to mean a reference to a mutable place.
- Rusky 2y ago> Especially I find it confusing that the term mutable reference is sometimes used to mean a reference to a mutable place. It always means this- unlike C, the mutability of a place is not part of its type, so if you're talking about the reference itself being mutable that will be tracked somewhere else.
- deleted 2y ago[deleted]
- n42 2y agoI am a layperson who doesn’t work with the “lower register” as discussed in the article very often (if at all), and this makes a lot of sense to me in a way that most discussions about pinning do not. I respect, maybe even envy, the clarity and humble conviction in your writing. I learned a lot reading this.