It definitely has an ugly syntax and it could have shed more complexity pre-stable but it's Good Enough already.
Yes. Language-integrated refcounting (with ability to optimize out provably-unneeded ref/deref) is excellent.
-
-
It's much nicer when it can be non-atomic by default and still safe though.
-
No reason that higher level languages couldn't copy that from Rust while not being low-level / verbose.
-
i.e. opt-in to a reference type being shareable between threads. Can permit sending ownership either way.
-
JavaScript actually has an API for passing ownership of typed arrays between web workers.
-
Support for weak pointers is enough to add that "for free" since there's already a failure path included.
-
Anyway Swift approach is definitely nice because they can also scale the lang down to system stuff later.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.