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

Add support for slices #555

Closed
espindola opened this issue Jun 23, 2011 · 1 comment
Closed

Add support for slices #555

espindola opened this issue Jun 23, 2011 · 1 comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@espindola
Copy link

LLVM uses a lot of StringRef and ArrayRef. They are really handy and efficient, being implemented with just a pointer and size.

Some uses of it are safe (call a function with StringRef to a string that outlives the call), some unsafe (StringMap return a StringRef).

Go makes this kind of things builtin to the language (http://golang.org/doc/effective_go.html#slices), maybe we could do the same.

@graydon
Copy link
Contributor

graydon commented Feb 14, 2012

If this emerges it'll come from the work on regions, and be implementable in libraries. Closing as indefinitely-postponed for now. It's unlikely this bug will remain relevant when the pieces are in place.

@graydon graydon closed this as completed Feb 14, 2012
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
…hton

Surround rustc download in appveyor-retry
pdietl pushed a commit to pdietl/rust that referenced this issue Apr 23, 2020
Document the `automatically_derived` attribute.
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

2 participants