Algorithms should be free from rich types
Cecil Ward
cecil at cecilward.com
Wed Jun 28 17:51:12 UTC 2023
On Wednesday, 28 June 2023 at 17:40:25 UTC, bachmeier wrote:
> On Wednesday, 28 June 2023 at 08:00:23 UTC, FeepingCreature
> wrote:
>
>> I like this approach:
>>
>> ```
>> class C {
>> private int i;
>> }
>> ...
>> void main() @system {
>> auto c = new C;
>> c.private.i = 5;
>> }
>> ```
>
> This would be a good change to the language.
I’m not sure, but I’m thinking ‘yes’.
More information about the Digitalmars-d
mailing list