Scala parameters for access modifiers?
问题 What is the difference between class Test { private[this] val foo = 0 } vs class Test { private val foo = 0 } What all can go inside the [] ? Also, what should I search for when I want to look up the specs of this? I tried Googling various combinations of "scala access modifier arguments/parametrized scala access modifier" and nothing came up. 回答1: what should I search for when I want to look up the specs of this? In The Scala Language Specification it is defined as "access modifier" and