Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dataflow
on Feb 23, 2018
|
parent
|
context
|
favorite
| on:
Why writing a linked list in safe Rust is so damne...
So you're suggesting we add a refcount to every value because it can be made to be semantically the same as not having one?
vvanders
on Feb 23, 2018
[–]
If you want to stay in safe Rust, sure. If that's too much overhead feel free to drop down to unsafe and do it just like in C/C++.
FWIW Rc is pretty lightweight. Arc is the heavier(and threadsafe) variant.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: