-
Notifications
You must be signed in to change notification settings - Fork 37
Split up tilde functions based on usage #53
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #53 +/- ##
==========================================
+ Coverage 80.20% 80.22% +0.01%
==========================================
Files 12 12
Lines 864 900 +36
==========================================
+ Hits 693 722 +29
- Misses 171 178 +7
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. I left one comment. Thanks for the great PR!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Thanks @phipsgabler! |
Implements what I proposed in #46. Each
tildeordot_tildecall becomes(dot)_tilde_{assume,observe}, respectively, depending on position. And particularly, the varname and indices are also passed in for observations of non-literals.These additional arguments are just ignored by default, which makes the changes backwards-compatible.
Additionally, I changed the way assume/observed is distinguished by the
@preprocessmacro, which is now@isassumptionand does return a boolean. Thus the dispatch on tuple types becomes unnecessary.