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

Remove by-name modifier from Predef.assert #21617

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

isaacl
Copy link

@isaacl isaacl commented Sep 19, 2024

Since message is inlined and gated behind the if check, it will still only get parsed on demand.

Since message is inlined and gated behind the `if` check, it will still only get parsed on demand.
@isaacl
Copy link
Author

isaacl commented Sep 19, 2024

Note: I may be misunderstanding how Dotty compiles this, but in a personal codebase, I have dropped lazy modifiers in similar situations.

@dwijnand dwijnand changed the title Remove lazy modifier from Predef.assert Remove by-name modifier from Predef.assert Sep 19, 2024
@dwijnand
Copy link
Member

I agree. But we call it a by-name parameter.

@isaacl
Copy link
Author

isaacl commented Sep 20, 2024

I guess it breaks binary compatibility from the test failure.

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