In Scala, is assignment operator “=” a method call?

后端 未结 3 1455
后悔当初
后悔当初 2020-11-28 15:18

As per Scala book, \"Programming In Scala\" -

Scala is an object-oriented language in pure form: every value is an object and every operation is a method call

3条回答
  •  自闭症患者
    2020-11-28 15:42

    While the other answers are correct for standard Scala, there is a variant called Scala-Virtualized where = and other control structures are method calls.

提交回复
热议问题