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

Make some functions constant #17

Open
shamatar opened this issue Nov 17, 2019 · 1 comment
Open

Make some functions constant #17

shamatar opened this issue Nov 17, 2019 · 1 comment

Comments

@shamatar
Copy link

It should be possible to make some functions constant, at least simple ones like an empty state. It will require to add extra constructors because runtime feature detection is obviously not constant. With further evolution of constant functions in rust it should be possible to precompute State instances if one always uses some keying.

@oconnor663
Copy link
Owner

I wonder if this would make more sense as a separate crate. Maybe there'd be no need for the State model anyway, and everything could be all-at-once functions?

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

2 participants