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

In IOLifts.fromOption, be more efficient in error case. #15

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

johnynek
Copy link
Collaborator

@johnynek johnynek commented Jan 5, 2023

I realized we actually know the full error message at compile time (that's the whole point of the macro), so we don't need to assemble a string at runtime, we can assemble in the macro, so at runtime it is just a static literal string (that will be a constant in the class file).

@aishfenton aishfenton merged commit bf7bc3d into main Jan 6, 2023
@johnynek johnynek deleted the oscar/optimize_option_to_io_error branch January 6, 2023 18:42
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