Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function based syntax for meta and constraints macros parses but does produce weird errors when applied #165

Closed
bvdmitri opened this issue Mar 11, 2024 · 1 comment
Assignees

Comments

@bvdmitri
Copy link
Member

The old version supported the following syntax

@constraints function constraints_mv_iid_wishart()
    q(m, P) = q(m)q(P)
end

both for @meta and @constraints. The new implementation should support these as well.

@bvdmitri
Copy link
Member Author

bvdmitri commented Mar 11, 2024

E.g. we were be able to write this

@constraints function constraints_with_condition(condition)
    if condition
        q(m, P) = q(m)q(P)
    end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants