Skip to content
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

Split Temp into TempFile and TempDir #7

Open
chris-morgan opened this issue Jun 1, 2017 · 0 comments
Open

Split Temp into TempFile and TempDir #7

chris-morgan opened this issue Jun 1, 2017 · 0 comments

Comments

@chris-morgan
Copy link

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant