-
-
Notifications
You must be signed in to change notification settings - Fork 611
Don't export flatten #1735
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
Don't export flatten #1735
Conversation
```julia julia> WARNING: both Flux and Iterators export "flatten"; uses of it in module DiffEqFlux must be qualified ``` Yeah no, that interferes with a very common Base module.
Given |
Could anyone have ever actually used this though? If one package in the entire stack uses Iterators it's going to have an issue. I've never seen a package export something that shadows Base 😅 |
It's come up a few times in MWEs in the wild. I imagine this hasn't come up already because most folks use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Breaking or not, this is something we would need to address. Unexporting would also require some changes to docs and tests and such. @ChrisRackauckas lmk if you want me to take it forward.
Oh don't get me wrong, we shouldn't be exporting this. However, I don't think we should make this change until we're ready to cut a breaking release. It's a super trivial one, so as long as someone remembers we'll be good to go. |
|
I don't see many breaking changes on the horizon, right? We could just unexport |
Closing this in favor of #1751 |
Yeah no, that interferes with a very common Base module.