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

Improve probabilistic program definition syntax

Open marcoct opened this issue 8 years ago • 0 comments

If possible, change the current syntax:

@program foo(args..) begin
    .. body
end

to:

@probabilistic function foo(args...)
    .. body
end

This syntax be more familiar to Julia users, and would make it clearer that what they're defining is very much like a Julia function, which is defined like:

function foo(args...)
    .. body
end

marcoct avatar Aug 11 '17 01:08 marcoct