Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Yoric
on Jan 25, 2022
|
parent
|
context
|
favorite
| on:
I’m porting the TypeScript type checker tsc to Go
You can define two `*mut`, though, in unsafe code.
anderskaseorg
on Jan 25, 2022
[–]
A better option is to use Cell or RefCell; they allow completely safe shared mutability in single-threaded code.
https://doc.rust-lang.org/std/cell/
Yoric
on Jan 31, 2022
|
parent
[–]
I'm aware of that :)
I'm just trying to decypher that cryptic sentence from the OP.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: