-
-
Notifications
You must be signed in to change notification settings - Fork 199
Closed
Description
@bob-carpenter commented 3 days ago (at stan-dev/stan#1578):
"Our general convention for probabilty functions is to raise an
exception. So rather than the comparisons, this should use
another check function.
And there's never any reason to set a value and then immediately
return it. It could be written as
return stan::math::negative_infinity();
But I really think it should be replaced with something that
throws an informative exception --- the idea is to trap errors
as early as possible and let the user know where they arise.
- Bob"