On Thursday, 30 October 2025 at 10:20:01 UTC, Zealot wrote:
>On Wednesday, 29 October 2025 at 22:33:50 UTC, Peter C wrote:
>And really, if scopeprivate produces cognitive overload in a programmers brain, they probably should choose another profession.
maybe you should choose another profession /s.
there's a lot of complexity if you consider metaprogramming, tupleof, ...
and you can simply do this for the exact same result:
import std;
class A {
struct _____ {
int a = 42;
int b = 43;
}
_____ _;
void foo() {
writeln(_.a);
}
}
void main() {
auto a = new A;
a.foo();
a._.a.writeln; // you don't do this accidentially
}
_____ is a beautiful name. Kinda hard to guess how many _ there are. Maybe _696969 is a better name.
Permalink
Reply