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

Use `@rand` or `@sample` instead of `rand`?

Open gbdrt opened this issue 3 years ago • 0 comments

Currently calls to rand are capture to execute custom code via internal_rand(e.g., add a node for symbolic computation). Why not use a macro, e.g., @rand or @sample (similar to @observe)

That would also be easier to document, since right now there is no function rand in OnlineSampling that can be described in the doc.

gbdrt avatar Jul 19 '22 19:07 gbdrt