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 DataStructures dependency ? #32

Open
bjarthur opened this issue Dec 20, 2022 · 4 comments
Open

add DataStructures dependency ? #32

bjarthur opened this issue Dec 20, 2022 · 4 comments

Comments

@bjarthur
Copy link
Contributor

for the [S]ort method added in #28 to work on Dicts, one must import DataStructures. should we add this to Eyeball's Project.toml to make it easier for users?

@tshort
Copy link
Owner

tshort commented Dec 23, 2022

I find this odd. Why does sort(d::Dict) return a OrderedCollections.OrderedDict? It doesn't look like either OrderedCollections or DataStructures is a standard package.

Also, eye(foo) seems to work for me in Julia v1.7.1 and v1.8.3 without the import DataStructures. Am I missing something?

@bjarthur
Copy link
Contributor Author

sort(Dict("a"=>1)) in a fresh julia session returns a MethodError for me. i'm pretty sure you have to import DataStructures for this to work, for as you said, it's not a stdlib. hence this issue, of whether we should add it as a dep to eyeball.

@tshort
Copy link
Owner

tshort commented Dec 23, 2022

It looks like Revise.jl depends on OrderedCollections. That's why sort(Dict("a"=>1)) works for me by default. But, why should it? Isn't that type piracy if the package is defining Base.sort for a Dict?

@tshort
Copy link
Owner

tshort commented Dec 23, 2022

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