DiffRules.jl icon indicating copy to clipboard operation
DiffRules.jl copied to clipboard

closed under packages?

Open amrods opened this issue 4 years ago • 1 comments

I'm willing to define some rules for SpecialFunctions, however some of the derivatives require functions not implemented in SpecialFunctions but in say GSL.jl. Is there any style convention for only allowing rules that are closed under derivation in the same package? I suppose the worst that can happen is that a user would get an undef error if they try to use a rule that requires GSL.jl but they have not loaded it before.

amrods avatar Aug 27 '21 02:08 amrods

This sounds OK to me, better than not having the rules, or unconditionally loading. I don't see a way to make a very friendly error message, sadly... it's a pity that GSL doesn't have a more verbose descriptive name.

mcabbott avatar Dec 10 '21 15:12 mcabbott