Skip to content

Conversation

@devmotion
Copy link
Member

This PR needs some discussion and is not ready to merge yet.

It contains a fix for #62 (only quickly tested in the REPL with @macroexpand yet) and removes the different @sampler, @vi etc macros by instead using reserved names for the arguments that user can access in their function definition, called _varinfo, _model, _sampler, _context. So basically users can do whatever they want but to avoid weird bugs and surprises for users a warning is displayed if these names appear in the model definition.

I'm not sure yet if this is a reasonable or in any way better than the current macro based approach, I just wasn't completely satisfied with the macros since they require the use of brackets and look a bit ugly IMO. So I guess one might want to separate the first change in a separate PR.

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

Successfully merging this pull request may close these issues.

2 participants