DynamicPPL.jl
DynamicPPL.jl copied to clipboard
Method calls itself - potential stack overflow
Good catch! Seems a bit difficult to provoke and test though since there are other definitions for UnivariateDistribution, MultivariateDistribution, and MatrixDistribution... Maybe it should just be removed, and if someone uses a custom distribution that does not fit in these categories she has to implement DynamicPPL.reconstruct?
Sounds reasonable, or we can throw an error saying please implement this function.
This is likely fixed by the evaluate!! API.