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

It would be nice if Block and Series types could be the same underneath #20

Open
Lokathor opened this issue Jul 9, 2021 · 1 comment

Comments

@Lokathor
Copy link
Member

Lokathor commented Jul 9, 2021

Currently they are not the same type (and don't share the same iterator) because a const generic is used for the stride quantity on the Series.

A const generic cannot be filled in by an expression based on another generic at this time. In other words, for the Block, we can't say that it's just an alias of the Series with the stride filled in as the size_of::<T>().

We could:

  • use a field.
  • wait for const generics to allow this.
  • just live with the separation forever.
@Lokathor
Copy link
Member Author

Given the discussion on zulip, it seems this won't be possible for quite some time.

@Lokathor Lokathor changed the title It would be nice if VolBlock and VolSeries could share the same iterator. It would be nice if Block and Series types could be the same underneath Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant