superruzafa / visual-scala-reference

Visual Scala Reference
https://superruzafa.github.io/visual-scala-reference
269 stars 28 forks source link

Wrap single arg of function type as same as in other definitions. #2

Closed exoego closed 5 years ago

exoego commented 5 years ago

Only this file uses A => B notation, but all other files uses (A) => B.

Though I personally prefer shorter A => B, I agree that function types should be written in similar fasion: always use parenthesis around arguments like (A) => B, (A, B) => C or (A, B, C) => D.