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

Document and improve consistency of linearindexing #10859

Merged
merged 1 commit into from
Apr 17, 2015

Conversation

mbauman
Copy link
Sponsor Member

@mbauman mbauman commented Apr 17, 2015

Always have array subtypes define linearindexing in the type-domain, so they do not need to have two definitions.

Cc: @timholy

While it's complicated to define this in the type domain (due to invariance), I think this is better than making abstract array authors define both value- and type-domain methods.

Also, this help definition doesn't work at the REPL due to #10721, but documented is better than not.

Always have array subtypes define `linearindexing` in the type-domain, so they do not need to have two definitions.
@timholy
Copy link
Sponsor Member

timholy commented Apr 17, 2015

👍

mbauman added a commit that referenced this pull request Apr 17, 2015
Document and improve consistency of linearindexing
@mbauman mbauman merged commit 3e72801 into JuliaLang:master Apr 17, 2015
@mbauman mbauman deleted the mb/linearindexing branch April 17, 2015 14:57
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.

None yet

2 participants