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

apply_rule -> apply_function ... #1084

Merged
merged 1 commit into from
Sep 15, 2024
Merged

apply_rule -> apply_function ... #1084

merged 1 commit into from
Sep 15, 2024

Conversation

rocky
Copy link
Member

@rocky rocky commented Sep 8, 2024

Change apply_rule() -> to apply_function() when that is what is is; (and not when it is not).

Also mark BaseRule an abstract class, and go over docstrings in mathics.core.rules

@mmatera I think i now understand what you were getting at when we were discussion replacement name for do_replace(). Both functions are definitely apply functions. We could call the method apply(). I think though being specific and explicit increases clarity and reduces potential confusion.

when that is what is is; (and not when it is not).

Also mark BaseRule an abstract class, and go over docstrings in mathics.core.rules
@rocky
Copy link
Member Author

rocky commented Sep 15, 2024

Haven't heard back one way or another on this, so merging. We can adjust down the line.

@rocky rocky merged commit ebdc6b9 into master Sep 15, 2024
11 checks passed
@rocky rocky deleted the apply-redux branch September 15, 2024 21:57
@mmatera
Copy link
Contributor

mmatera commented Sep 15, 2024

@rocky, sorry for the delay. In any case, I agree with these changes.

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