AndreVanDelft / scala

The SubScript extension to the Scala programming language
http://www.subscript-lang.org/
12 stars 1 forks source link

Use colons for call arguments #71

Closed AndreVanDelft closed 8 years ago

AndreVanDelft commented 9 years ago

To have less parentheses, there is currently syntax print,i During a discussion on Reddit it appeared that a colon would look better: print: i

AndreVanDelft commented 9 years ago

I just read in lihaoyi/Ammonite Rock-solid shell scripting:

Pipeable

Ammonite brings with it the |> operator on all values, defined as:

    implicit class Pipeable[T](t: T){
      def |>[V](f: T => V) = f(t)
    }

It basically lets you write a |> b rather than b(a). It does nothing more

(end quote) So this may be a better option than the colon.