Raku / doc

🦋 Raku documentation
https://docs.raku.org/
Artistic License 2.0
286 stars 293 forks source link

Describe "explicit scoping" operator `::` #3756

Open JJ opened 3 years ago

JJ commented 3 years ago

Problem

The operator is used throughout the documentation, and referred to as "explicit scoping" in the traps page. However, it's not explicitly defined anywhere, or indexed.

Suggestions

We need to explain what it does, and its use cases. For instance, why is it used for currying roles? Why is it used also for anonymous classes here?

2colours commented 1 year ago

Is this even an operator in any sense? Grammarwise, these are composite names apparently, even when the "name" part ends with ::