Extending D's support for object-oriented design with private(this)
NotYouAgain
NotYouAgain at gmail.com
Thu Apr 25 23:25:07 UTC 2024
On Thursday, 25 April 2024 at 16:40:30 UTC, Quirin Schroll wrote:
> On Thursday, 25 April 2024 at 05:37:24 UTC, NotYouAgain wrote:
>> […]
>
> I don’t know why, but I find `private(this)` looks weird. It
> makes me think I can put other things in the parentheses –
> which is not the case. How about `super private`? `super` is
> already a keyword. Yes, it’s a little bit tongue-in-cheek, but
> I honestly like it more than `private(this)`.
Do I take it, that you're in agreement, that this is a solution
to a problem, and that you're just uncomfortable with how
private(this) looks?
If so... you can already do things like this in D:
struct A
{
this(this) {}
}
More information about the dip.ideas
mailing list