Hacker News new | past | comments | ask | show | jobs | submit login
Pinned Places (without.boats)
39 points by ingve 9 months ago | 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.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: