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

Replace MacroTools with ExprTools & Base.remove_lines! #2425

Merged
merged 3 commits into from
Jan 29, 2024

Conversation

oxinabox
Copy link
Contributor

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Briefly discussed this on twitter with @ChrisRackauckas

This lets us drop the direct dependency on MacroTools (though we still have like a dozen indirect dependencies on it)
ExprTools is a smaller dependency that is more comprehensively tested than MacroTools, and does actually catch several cases that MacroTools misses.

I will note that Base.remove_linenum! is not part of the public API of Base (JuliaLang/julia#52904) however it is already used several times in MacroTools.

I am not super fussed, but if this PR is approved I will try and put a PR in each day or so to remove MacroTools from another package in the SciML ecosystem. Its a nice little exercise to wake brain up in the morning.

Project.toml Outdated Show resolved Hide resolved
@YingboMa YingboMa merged commit 882f721 into SciML:master Jan 29, 2024
14 of 18 checks passed
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.

3 participants