Skip to content

add a struct ConsList<T> { Nil, Cons(T, ~List<T>) } library to libstd #8397

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
bblum opened this issue Aug 8, 2013 · 4 comments
Closed

add a struct ConsList<T> { Nil, Cons(T, ~List<T>) } library to libstd #8397

bblum opened this issue Aug 8, 2013 · 4 comments
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup.

Comments

@bblum
Copy link
Contributor

bblum commented Aug 8, 2013

Currently we have a bad one written in old idioms, using @-pointers, in libextra. This is wrong three ways.

@bblum
Copy link
Contributor Author

bblum commented Aug 8, 2013

Requires care about destruction. See #8399.

@thestinger
Copy link
Contributor

I don't think this would really be useful since you'd almost always be better off using a vector.

@flaper87
Copy link
Contributor

flaper87 commented Apr 1, 2014

Triage bump. FWIW, I agree with @thestinger here.

I'll leave it open to get more feedback from the community

@thestinger
Copy link
Contributor

It was actually decided to remove this rather than replace it with an owned list recently: #13183

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup.
Projects
None yet
Development

No branches or pull requests

3 participants