Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Pinned Places (without.boats)
39 points by ingve on July 24, 2024 | hide | past | favorite | 6 comments


This 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



Thanks! Macroexpanded:

Pin - https://news.ycombinator.com/item?id=41029287 - July 2024 (121 comments)


I 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.


> 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.


I 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: