Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> but a sentence like 'but wait, RWArc is just a library, how come it was able to do the thing that I said the compiler wouldn't let you do?' would have cleared it up just fine.

Hmmm. Isn't that what this says?

> So, the Rust language does not allow for shared mutable state, yet I just showed you some code that has it. How’s this possible? The answer: unsafe.



Well for me at least, you're introducing the language so it seems like RWArc is part of that. I have no idea as to whether or not there are any little cheats put into things like RWArc that are not available to other code, so emphasizing that RWArc is the kind of thing I could have written myself would have helped me understand.

It's that jump from being introduced to RWArc to considering how it might have been implemented that wasn't obvious to me.


Gotcha. It seems a few other people had this issue too, I'll take care of it in the next iteration. Thank you!


Thanks for doing this, I've got much more appetite for reading about rust than can easily be sated, so it's very gratifying to have someone explain the key concepts so clearly and well.


Any time. If only there were five of me!




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

Search: