-
-
Notifications
You must be signed in to change notification settings - Fork 2
Rc mixin vs Rc wrapper #1488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think we should have |
What does AutoDeref do? Could you elaborate? All I was thinking for Rc was something like this
this interface would be satisfied by simply having a "reference-count" field. |
I don't think that makes sense in practice. re AutoDeref: it should be named
(bad) example:
|
Here is my view on the We can always back out and move to a different approach, but right now, the Rc interface is a concrete way that I can see of moving to GC in the short term. |
One of the coolest thing about Rc interface is that data structures and any type can be marked as reference counted. So all List, Vector, AST, Type, whatever can be marked as GC-enabled and used without any change in the type signatures or other code interactions.
|
Benefits of
Rc<A>
:Into
semantics to "feel good"Rc<t> implements Rc
Benefits of
A implements Rc
The text was updated successfully, but these errors were encountered: