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

Proposal: Consider changing collection constructors to accept iterables #11

Closed
kmsquire opened this issue Feb 28, 2014 · 13 comments
Closed

Comments

@kmsquire
Copy link
Member

A recent change in Base does this (JuliaLang/julia#5897), so that, e.g., Set(1,2,3) is now Set([1,2,3]). This is mainly for efficiency--e.g., constructing from large collections no longer requires splatting:

a = rand(100000)
...
#s = Set(a...)   ## Old
s = Set(a)       ## New
@zachallaun
Copy link
Contributor

I'm certainly open to this change. One of the ultimate goals of this package is to integrate with Base and be as familiar as possible. It's a way away from that, but sticking to the conventions present in Base is a big part of it.

@kmsquire
Copy link
Member Author

Cool. I would love to see these in Base at some point.

@shashi
Copy link
Contributor

shashi commented Oct 1, 2014

@kmsquire could you check if this could be closed? Currently pset can handle any iterable. Please let me know if there are any other bits that could be moved closer to Base conventions.

@shashi
Copy link
Contributor

shashi commented Oct 28, 2014

The constructors for pset, phmap and pvec now accept iterables. This can be closed too.

@zachallaun
Copy link
Contributor

Thanks for staying on top of this =)

@shashi
Copy link
Contributor

shashi commented Oct 28, 2014

I think it's worth moving this package to the JuliaLang org, if you are willing, so that it gets more visibility (people might need it but not know it yet. ;) ) and other collaborators can collectively work on features. @StefanKarpinski what do you think?

@zachallaun
Copy link
Contributor

I'm definitely open to it if people would find it useful. I'm planning to do the same with FactCheck.jl. Most of my Julia projects are reasonably unmaintained at this point, which is a bummer.

@StefanKarpinski
Copy link
Contributor

@zachallaun, you need admin rights here?

@zachallaun
Copy link
Contributor

@StefanKarpinski Got it. Moving this repo and FactCheck.jl to julialang.

@StefanKarpinski
Copy link
Contributor

Coolio. Thanks for doing that.

@zachallaun
Copy link
Contributor

@StefanKarpinski All done, methinks. You can have your keys back now.

@StefanKarpinski
Copy link
Contributor

Aight. Thanks again.

@shashi
Copy link
Contributor

shashi commented Oct 29, 2014

Sweet. Just tagged v0.1.1 JuliaLang/METADATA.jl#1656

Thanks! :)

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

4 participants