Dlangs inconsistent decision making and ai
H. S. Teoh
hsteoh at qfbox.info
Tue Sep 1 15:51:06 UTC 2026
On Tue, Sep 01, 2026 at 02:09:11PM +0000, ABrightLight via Digitalmars-d wrote:
> On Sunday, 30 August 2026 at 06:20:12 UTC, Kapendev wrote:
> > I had an idea like that recently on the D Discord server.
> > You could make a friend list for every D module.
> > A friend is allowed to modify anything, even a private field, while
> > a simple acquaintance is forced to follow the rules set by the
> > master and his friends.
> >
> > Example:
> >
> > ```d
> > module std.json;
> > pragma(friends, "master:serg:user1234");
> > ```
>
> I highly recommend staying away from C++'s friend design. It will
> needlessly complicate the language.
+1, yeah please don't ruin D by reintroducing C++'s "friend" that we
paid a high price to get away from.
T
--
Why waste time reinventing the wheel, when you could be reinventing the engine? -- Damian Conway
More information about the Digitalmars-d
mailing list