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

Remove const generic from coord buffers #845

Merged
merged 9 commits into from
Nov 14, 2024

Conversation

kylebarron
Copy link
Member

@kylebarron kylebarron commented Nov 2, 2024

In discussion with Dewey around this PR #844, I realized that regardless of whether we remove the underlying CoordBuffer enum, we can remove the const generic on the CoordBuffer to determine its physical dimension. Even if this is slightly slower, I think it's very important for maintainability.

I realize now that this is what b4l was trying to argue for in #822, but I couldn't see what he meant there without an example.

For #822, for #801

@kylebarron kylebarron marked this pull request as ready for review November 14, 2024 22:32
@kylebarron kylebarron changed the title wip: remove const generic from coord buffers Remove const generic from coord buffers Nov 14, 2024
@kylebarron kylebarron enabled auto-merge (squash) November 14, 2024 23:53
@kylebarron kylebarron merged commit b732d40 into main Nov 14, 2024
22 checks passed
@kylebarron kylebarron deleted the kyle/remove-const-generic-coords branch November 14, 2024 23:59
kylebarron added a commit that referenced this pull request Nov 16, 2024
Removes the `const D: usize` generic on each array type, delegating the
coordinate dimension to the coordinate buffer.

Closes #822, for
#801. Builds on
#845
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 this pull request may close these issues.

1 participant