Skip to content

Not going to be merged: Statically checked axis numbers #96

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
wants to merge 4 commits into from

Conversation

bluss
Copy link
Member

@bluss bluss commented Feb 28, 2016

This approach is posted here to show it, but this will not be merged.

It uses Axis(usize) for dynamic axis indexing, and statically checked Axis0, Axis1 etc that can be checked against the array dimension using the type system.

This allows some degree of static checking. However, I think this system does not carry its own costs -- it introduces more generics for very little benefit. Instead I will post a simpler non generic approach.

@bluss
Copy link
Member Author

bluss commented Feb 29, 2016

Superseded by #97

@bluss bluss closed this Feb 29, 2016
@bluss bluss deleted the axis-typenum branch February 29, 2016 12:50
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