3 ms·
I've been programming Rust professionally for several years now and being totally honest I don't really understand Pin that well. I get the theory, but don't re
by weavie 2y ago
I've been programming Rust professionally for several years now and being totally honest I don't really understand Pin that well. I get the theory, but don't really have an intuitive understanding of when I should use it.
My usage of pin essentially comes down to "I try something, and the compiler complains at me, so I pin stuff and then it compiles."
It's never been such a hurdle in the day to day coding I need to do that I've been forced to sit down and truly grok it.
- 01HNNWZ0MV43FF 2y agoSame. It's one of my most common cases of "Just avoid unsafe and be glad some smart compiler folks already solved this all for me" Whereas in C++ I was regularly treading in the water of "stuff I don't know, but must use" and getting eaten by crocodiles