Rethink OOP access permissions

12345swordy alexanderheistermann at gmail.com
Tue Feb 25 20:23:20 UTC 2025


On Monday, 3 February 2025 at 18:44:03 UTC, Atila Neves wrote:
> On Saturday, 27 April 2024 at 09:25:13 UTC, Daniel N wrote:
>> This is an alternative to "private(this)".
>>
>> I think it would be much more interesting if it was possible 
>> to separate read and write permissions instead.
>> (The syntax is just an example, not that important, just for 
>> illustration purposes.)
>>
>> [...]
>
> One can always move the class to another module.

Which then you have to move other things that rely on accessing 
the class private variables/functions.


- Alex


More information about the dip.ideas mailing list