Skip to content

Split Temp into TempFile and TempDir #7

@chris-morgan

Description

@chris-morgan

The _type flag is wasteful and makes for trivially more expensive construction and destruction. It’d be more efficient—and I would argue more ergonomic—to split the Temp type into two types, TempFile and TempDir. (I’m not going to suggest phantom types, because they’re more complex for no gain that is evident to me.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions