Skip to content

Commit

Permalink
fix some markup and add the 'class' scope that allows for a full mirr…
Browse files Browse the repository at this point in the history
…or of how 'private' works in C++ and some other languages
  • Loading branch information
dshadowwolf committed May 26, 2020
1 parent 706e28c commit 2ec3af5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions on-program-composition-and-a-potential-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,25 +258,27 @@ function x() ...
```
For the current suggestion there would be visibility domains including, but not limited to, the following:
- class
- ``class``
- similar to the classic "private" but kept separate to allow for more granularity in the system
- subclass
- ``subclass``
- similar to classic "protected" but separate to allow for extra granularity to be added and controlled by the scope
- ``public``
- classical meaning - specific semantics of how wide this is detailed by the scope
- ``private`` and ``protected``
- classical meanings, specifically for places where it is wider-than-class visible, but not ``world`` - eg: ``package private`` in Java would be domain ``private`` and scope ``package-only``
For scope, at this point, we have the following suggested:
- package-only
- ``class``
- included for completeness and to allow for a true mirror of the semantics of the classic ``private`` visibility modifier in other languages
- ``package-only``
- just the containing package, not even sub-packages (better name needed!)
- package
- ``package``
- this package and all sub-packages
- ``module-only`` and ``module``
- module-level variation of ``package-only`` and ``package``
- assembly
- ``assembly``
- the containing assembly, but not the world
- world
- ``world``
- everything
### Older Notes and Information
Expand Down

0 comments on commit 2ec3af5

Please sign in to comment.