lunatech-labs / lunatech-scala2-to-scala3-course

Lunatech course - "Moving forward from Scala 2 to Scala 3"
Apache License 2.0
204 stars 21 forks source link

Remove all uses of infix notation #35

Closed eloots closed 4 years ago

eloots commented 4 years ago

The code still has some use cases of infix notation, for example in encoding a transformation with foldLeft:

(collection foldLeft initialValue) {
  case ...
}

The code should be scanned for these and the infix notation should be changed to dot notation.

The above would then look as follows:

collection.foldLeft(initialValue) {
  case ...
}