-
Notifications
You must be signed in to change notification settings - Fork 3
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
Reduce code duplication by using more general functions in the back-end #39
Comments
For the
I do easily see that I can reduce those two lines to one, but I do not think it's worth it for three reasons:
I do predict in the future these |
Likewise for Note how this ties in with #45. |
I feel that bjoelle is right, yet it should and can be done as suggested if and only if the package is in a finished state. Because the package is not yet complete, this Issue must be moved to the future and potentially re-opened then. |
Feedback bjoelle:
Structure
The main issue [...] (see #38)
Separating the different parameters (alpha, beta, gamma, etc) also leads to a lot of code duplication. It is useful for creating parameters as their default priors are different, but I would remove it for the other functions: the many functions
is_%sth%_param(x)
can be replaced by one functionis_named_param(x, name)
and theparameter_to_xml
functions also have a lot of redundancy.The text was updated successfully, but these errors were encountered: