You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if we don't have a rule for something, we return nothing
I do think it is tempting to return nothing here... but I wonder if it is just more explicit to return a NoRule (/NotImplemented) sentinal type, like we already have DNE to distinguish the case when the derivative does not exist (#17). Thoughts?
The text was updated successfully, but these errors were encountered:
Yeah, i feel like returning nothing make sense. And I'm not sure a custom sentinal would be better. But just raising it as a (small) user-friendliness question:
There are multiple cases where we don't return the derivative, for example, (1) it does exist, (2) it's not been implemented, (3) you're differentating wrt a function (#22)... probably others. And a maximum of one of these cases should return nothing (to disambiguate them).
Right now only case (2) returns nothing, so we're fine... but it does involve remembering the nothing means "no rule implemented". 🤷♂
Currently if we don't have a rule for something, we return
nothing
I do think it is tempting to return
nothing
here... but I wonder if it is just more explicit to return aNoRule
(/NotImplemented
) sentinal type, like we already haveDNE
to distinguish the case when the derivative does not exist (#17). Thoughts?The text was updated successfully, but these errors were encountered: