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

Ok cool, I figured that was the case. I mostly sat down to write out the example to humour myself during my lunch break (as I said, I don't do much with threads so wanted to make sure I understood what was going on).

The ownership/borrowing system is really interesting, not something I'd seen before - though I guess other languages do it too?



Ownership/borrowing enforced at compile time doesn't exist in any other (practical) language. Though C++ has some runtime support for it and in C you would/should do it by convention.




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

Search: