I've come across the following syntax while looking through the Gatling source code:
private[http] def build = {
// ...
}
What is the syntax inside square brackets?
When I click through it in my IDE it is an alias to a fully qualified package (com.excilys.ebi.gatling.http
) but I can't find where that alias was defined.
In short: this is used for scope protection:
Same to protected[C]
See the scala reference, specifically, chapter 5.2. Some excerpt: