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

move [l]gamma, [l]beta and lfact to SpecialFunctions.jl #27473

Merged
merged 1 commit into from
Jun 11, 2018

Conversation

fredrikekre
Copy link
Member

fix #27459

@fredrikekre fredrikekre added domain:maths Mathematical functions needs news A NEWS entry is required for this change kind:excision Removal of code from Base or the repository labels Jun 7, 2018
@fredrikekre fredrikekre removed the needs news A NEWS entry is required for this change label Jun 7, 2018
@JeffBezanson JeffBezanson added this to the 0.7 milestone Jun 7, 2018
@deprecate_moved lbeta "SpecialFunctions"
@deprecate_moved lfact "SpecialFunctions"
function factorial(x::Number)
error("""factorial(x::Number) has been moved to the package SpecialFunctions.jl.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't make sense to me. Why would we move one method and not the whole function? With this, SpecialFunctions will need to commit type piracy to define that method.

Copy link
Member Author

@fredrikekre fredrikekre Jun 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right; https://github.com/JuliaMath/SpecialFunctions.jl/pull/92/files#diff-f839a13f2df5472f7fd840f52ce84e16R757
Do we care though? It's not like SpecialFunctions define this function for a more narrow type, so this could not possibly break anything, since before using SpecialFunctions something like factorial(2.5) would be an error, and behaviour of factorial(::Integer) does not change when loading SpecialFunctions.

Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me. This allows people to do using SpecialFunctions in the same REPL session and have it work, which seems far superior to not being able to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:maths Mathematical functions kind:excision Removal of code from Base or the repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

math functions to move to SpecialFunctions.jl
4 participants