Skip to content

Use Rc<> instead of Box<> pretty much everywhere for ADTs/enums #8

@croys

Description

@croys

Motivations

Code currently uses Box<> extensively in the various recursive enums representing the program graph at various stages of translation. Some of the current translations involve direct pass through, and I expect considerably more sharing for the optimization stages.

Rc<> is more appropriate to avoid needless copies. The current convenience functions wrapping calls Box<>::new should probably be renamed as new_x.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions