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
Scala 3 Infix #2158
Conversation
…ions for Scala 3 build.
…ons for Scala 3 build.
…or Scala 3 build.
…ons for Scala 3 build.
…ns for Scala 3 build.
…unctions for Scala 3 build.
…for Scala 3 build.
…functions for Scala 3 build.
…x in DSL functions for Scala 3 build.
…functions for Scala 3 build.
…ctions for Scala 3 build.
…n DSL functions for Scala 3 build.
… functions for Scala 3 build.
…nctions for Scala 3 build.
…tions for Scala 3 build.
…ctions for Scala 3 build.
… infix in DSL functions for Scala 3 build.
… infix in DSL functions for Scala 3 build.
… infix in DSL functions for Scala 3 build.
… infix in DSL functions for Scala 3 build.
… infix in DSL functions for Scala 3 build.
… infix in DSL functions for Scala 3 build.
… infix in DSL functions for Scala 3 build.
… infix in DSL functions for Scala 3 build.
… infix in DSL functions for Scala 3 build.
…for Scala 3 build.
@@ -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] { |
There was a problem hiding this comment.
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] { |
There was a problem hiding this comment.
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?
@bvenners Thanks for the comments! I'll investigate and do the adjustments. Cheers. |
… and NotWord.scala.
…d and ResultOfGreaterThanComparison.
…rEqualToComparison, ResultOfLengthWordApplication and ResultOfLessThanComparison.
…ToComparison, ResultOfMessageWordApplication and ResultOfSizeWordApplication.
…ed in matchers DSL in the infix way.
…t used as infix operator in matchers DSL.
@bvenners I have made the adjustments, do you mind to review again? Thanks! |
Made all functions involved in matchers DSL infix functions.