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

Scala 3 Infix #2158

Merged
merged 53 commits into from Aug 22, 2022
Merged

Scala 3 Infix #2158

merged 53 commits into from Aug 22, 2022

Conversation

cheeseng
Copy link
Contributor

Made all functions involved in matchers DSL infix functions.

@cla-bot cla-bot bot added the cla-signed label Aug 15, 2022
@@ -90,7 +90,7 @@ final class BeWord {
* ^
* </pre>
**/
def <[T : Ordering](right: T): Matcher[T] =
infix def <[T : Ordering](right: T): Matcher[T] =
new Matcher[T] {
Copy link
Contributor

Choose a reason for hiding this comment

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

I would remove infix from methods with symbolic names, because it is not required for symbols.

@@ -352,7 +352,7 @@ final class BeWord {
* ^
* </pre>
**/
def apply[U](spread: Spread[U]): Matcher[U] =
infix def apply[U](spread: Spread[U]): Matcher[U] =
new Matcher[U] {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, I'm curious what syntax infix would support here?

@cheeseng
Copy link
Contributor Author

@bvenners Thanks for the comments! I'll investigate and do the adjustments.

Cheers.

@cheeseng
Copy link
Contributor Author

@bvenners I have made the adjustments, do you mind to review again?

Thanks!

@cheeseng cheeseng merged commit 43f1a75 into scalatest:3.2.x-new Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants