On Wednesday, 16 May 2018 at 03:36:39 UTC, KingJoffrey wrote:
On Wednesday, 16 May 2018 at 03:12:03 UTC, Jonathan M Davis wrote:

[...]
- Jonathan M Davis

To suggest that "Symbols with private visibility can only be accessed from within the same module" - is all you need to know (if you're lucky to find the needle in the haystack), is kinda elitist.

One is expected to know the tool they are using. There is nothing elitist about that.

People expect norms to be the norm. That's entirely reasonable.

If I see a STOP sign while I'm driving, I expect it means STOP, not 'STOP..if.."

If I see private, I expect it means private, not 'private..if'.

There is no if. You know what the stop sign means because someone told you what it means. private means it is only available to the module. It is entirely the fault of the user for not reading the docs.

The language reference could, and should do better.

Its actively being improved, but in this case it was more than adequate. The spec was pretty clear that private applies to modules.

Reply via email to