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

Unexport ifelse to avoid conflicts with Core.ifelse. #469

Merged
merged 1 commit into from
May 31, 2022

Conversation

ztangent
Copy link
Member

Per #431, we should avoid exporting Gen.ifelse to avoid conflicts with Core.ifelse. Having searched through the code for the Gen ecosystem, it looks no tests make use of Gen.ifelse, and only one example in GenExamples.jl makes use of it with an explicit import. It should thus be safe to unexport.

@ztangent
Copy link
Member Author

At some point we may want to consider importing and extending IfElse instead, since Core.ifelse is not extensible.

@ztangent
Copy link
Member Author

@alexlew @femtomc it'd be good to get your brief take on this before I merge!

@ztangent ztangent merged commit a6598af into master May 31, 2022
@ztangent ztangent deleted the ztangent-unexport_ifelse branch May 31, 2022 13:56
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

Successfully merging this pull request may close these issues.

None yet

1 participant