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

recursive Slice constructions? #115

Open
ThomasBreuer opened this issue Mar 20, 2019 · 2 comments
Open

recursive Slice constructions? #115

ThomasBreuer opened this issue Mar 20, 2019 · 2 comments

Comments

@ThomasBreuer
Copy link
Contributor

When one calls Slice on a Slice result, one gets a recursive structure,
which means that accessing and assigning entries are delegated until one eventually arrives at a non-slice.
Would it make sense to change Slice in the case that the first argument is a slice
in such a way that the underlying non-slice gets stored directly?

@ChrisJefferson
Copy link
Member

That sounds very sensible. I'd be happy with a PR, and also I'll put it on my list of things to do.

@ThomasBreuer
Copy link
Contributor Author

Thanks. I will create a pull request.

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

No branches or pull requests

2 participants