Scala Operators

Operators

  • myObject myMethod 1 is the same as calling myObject.myMethod(1)
  • Operator (i.e. function) names can be alphanumeric, symbolic (e.g. x1, *, +?%&, vector_++, counter_=)
  • The associativity of an operator is determined by its last character: Right-associative if ending with :, Left-associative otherwise.
  • assignment operators have lowest precedence.

评论

此博客中的热门博文

Nu förbjuder Kina handel med elfenben

Fader av pingyins

Kineserna vill köpa Volvos kompetens