Skip to content

Refactor MacroAnnotations.callMacro #18581

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

Merged

Conversation

nicolasstucki
Copy link
Contributor

Move error handling into call macro This method should handle the reflective calls and their errors.

Move error handling into call macro This method should handle the
reflective calls and their errors.
@nicolasstucki nicolasstucki marked this pull request as ready for review September 22, 2023 11:58
Copy link
Member

@hamzaremmal hamzaremmal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! On another note, shouldn't we also add a call to filter before the foldLeft in line 51. I don't think it would be that different from a performance point of view and we can also get rid of the bit if-else expression. If yes, should we do this on another PR ?

@nicolasstucki
Copy link
Contributor Author

shouldn't we also add a call to filter before the foldLeft

We could do that.

@nicolasstucki nicolasstucki merged commit 98215d3 into scala:main Oct 12, 2023
@nicolasstucki nicolasstucki deleted the refactor-MacroAnnotations-callMacro branch October 12, 2023 08:15
@Kordyjan Kordyjan added this to the 3.4.0 milestone Dec 20, 2023
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