3 ms·
> But the point is that I do NOT want shared ownership. Yeah, to me it sounds like you exactly want shared ownership. What you're describing is what shared own
by steveklabnik 8y ago
> But the point is that I do NOT want shared ownership.
Yeah, to me it sounds like you exactly want shared ownership. What you're describing is what shared ownership is.
> Callbacks are basically impossible to do in Rust,
I wouldn't go that far; yes, sometimes you need to do that dance for them, but not super often. It feels like maybe we've had wildly divergent experiences here :)
> why does it force me to pay for thread-safeness (overhead) so that I can use threads later (opinion)?
Because you're using a feature that can be accessed through multiple threads, even if you're not doing it now. If you use the version that can't, then Rust doesn't force you into it.
> let me initial globals with runtime code
This, in many cases, will be solved with `const fn`. But that runs at compile time, not before main. Life-before main has a ton of issues and is a huge pain.