Skip to content

Rc mixin vs Rc wrapper #1488

Open
Open
@andrew-johnson-4

Description

@andrew-johnson-4
Rc<A> vs A=>Rc

Benefits of Rc<A>:

  • can be used with all types, not just LM-style structures
  • affects typechecking
  • sometimes may require syntactic intervention from the programmer
  • depends on Into semantics to "feel good"
  • Rc<t> implements Rc

Benefits of A implements Rc

  • can be used to force all instances of the type to be reference counted
  • does not affect typechecking
  • can only be used with LM-style structures

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions