Skip to content

Is the reason for this crate still valid with const generics? If so, maybe update docs. #135

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

Closed
deepink-mas opened this issue Feb 9, 2023 · 1 comment · Fixed by #138

Comments

@deepink-mas
Copy link

This is the motivating example for this crate (slight difference between README and docs):

struct Foo<T, N> {
    data: [T; N]
}

Could this not be written (in recent Rust versions) as:

struct Foo<T, const N: usize> {
    data: [T; N]
}

If not, maybe update the motivating example?

@novacrazy novacrazy mentioned this issue Mar 28, 2023
Merged
2 tasks
@nathan-at-least
Copy link

I had the same question and just reviewed the 1.0.0-alpha.1 docs and it does indeed clarify the rationale for this crate (as claimed in #138). This includes an example of limitations of const generics which this crate addresses.

Thanks!

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

Successfully merging a pull request may close this issue.

2 participants