Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread ProtectAndHide via Digitalmars-d-learn
On Friday, 17 February 2023 at 04:58:17 UTC, RTM wrote: Data hiding is overrated. Furthermore, OOP is overrated :-) https://betterprogramming.pub/object-oriented-programming-the-trillion-dollar-disaster-92a4b666c7c7 What is 'Object-Oriented Programming'? (1991 revised version) Bjarne Stroust

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread ProtectAndHide via Digitalmars-d-learn
On Friday, 17 February 2023 at 04:58:17 UTC, RTM wrote: Data hiding is overrated. Furthermore, OOP is overrated :-) https://betterprogramming.pub/object-oriented-programming-the-trillion-dollar-disaster-92a4b666c7c7 Submit a request to the C++ Committee to remove private from the language.

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread ProtectAndHide via Digitalmars-d-learn
On Friday, 17 February 2023 at 04:43:11 UTC, RTM wrote: On Thursday, 16 February 2023 at 20:56:00 UTC, ProtectAndHide wrote: Both the module type, and the class type need this capability. No, they are not. Look at Go. Go does not have classes.

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread RTM via Digitalmars-d-learn
Data hiding is overrated. Furthermore, OOP is overrated :-) https://betterprogramming.pub/object-oriented-programming-the-trillion-dollar-disaster-92a4b666c7c7

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread RTM via Digitalmars-d-learn
On Thursday, 16 February 2023 at 20:56:00 UTC, ProtectAndHide wrote: Both the module type, and the class type need this capability. No, they are not. Look at Go.

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread zjh via Digitalmars-d-learn
On Friday, 17 February 2023 at 01:21:18 UTC, zjh wrote: They don't admit their mistakes! And `D` community is getting smaller and smaller! Because other languages laughs cry! `D` don't even have `type-safe` classes. The ability of a group of people to open their eyes and tell lies is really

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread zjh via Digitalmars-d-learn
On Friday, 17 February 2023 at 01:13:59 UTC, zjh wrote: They can't refute you, so they have to blame you. You can't wake up who pretend to sleep. They don't admit their mistakes! And `D` community is getting smaller and smaller! If I were D author , I would suspect that they are undercover

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread zjh via Digitalmars-d-learn
On Thursday, 16 February 2023 at 22:25:22 UTC, ProtectAndHide wrote: also, I noticed that you intentionally? did not respond to the facts that I outlined: ie. They can't refute you, so they have to blame you. You can't wake up who pretend to sleep.

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread ProtectAndHide via Digitalmars-d-learn
On Thursday, 16 February 2023 at 21:56:03 UTC, bachmeier wrote: On Thursday, 16 February 2023 at 21:23:53 UTC, ProtectAndHide wrote: Forcing programmers to use a design mechanism rather than a language mechanism to achieve the above abstraction is wrong. This seems to be the source of the dis

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread ProtectAndHide via Digitalmars-d-learn
On Thursday, 16 February 2023 at 21:56:03 UTC, bachmeier wrote: On Thursday, 16 February 2023 at 21:23:53 UTC, ProtectAndHide wrote: Forcing programmers to use a design mechanism rather than a language mechanism to achieve the above abstraction is wrong. This seems to be the source of the dis

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread bachmeier via Digitalmars-d-learn
On Thursday, 16 February 2023 at 21:23:53 UTC, ProtectAndHide wrote: Forcing programmers to use a design mechanism rather than a language mechanism to achieve the above abstraction is wrong. This seems to be the source of the disagreement, correct? There's no disagreement. It's you posting t

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread ProtectAndHide via Digitalmars-d-learn
On Thursday, 16 February 2023 at 20:56:00 UTC, ProtectAndHide wrote: My agrument is this: Objects are data abstractions with an interface of named operations and a hidden local state. Does anyone disagree with this? D does not have a language mechanism, but rather a design mechanism that

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread ProtectAndHide via Digitalmars-d-learn
On Thursday, 16 February 2023 at 13:39:13 UTC, H. S. Teoh wrote: On Thu, Feb 16, 2023 at 08:51:39AM +, FeepingCreature via Digitalmars-d-learn wrote: [...] Springboarding off this post: This thread is vastly dominated by some people who care very much about this issue. Comparatively, for i

[OT] (Go) Do I read it right?

2023-02-16 Thread Kagamin via Digitalmars-d-learn
https://github.com/dominikh/go-tools/issues/917 How go programmers cope with this feature?

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Feb 16, 2023 at 08:51:39AM +, FeepingCreature via Digitalmars-d-learn wrote: [...] > Springboarding off this post: > > This thread is vastly dominated by some people who care very much > about this issue. Comparatively, for instance, I care very little > because I think D already does

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread thebluepandabear via Digitalmars-d-learn
So let me just say: I think D does it right. D does not have class encapsulation; it has module encapsulation. This is by design, and the design is good. The design is terrible...

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread FeepingCreature via Digitalmars-d-learn
On Thursday, 16 February 2023 at 02:27:23 UTC, Mike Parker wrote: On Thursday, 16 February 2023 at 02:26:44 UTC, Mike Parker wrote: Wrong. I'm arguing things: Geez. "I'm arguing 2 things:" Springboarding off this post: This thread is vastly dominated by some people who care very much ab

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-16 Thread thebluepandabear via Digitalmars-d-learn
But at stop mispresenting what I'm saying. What I've stated above, is what I'm saying.. no more.. no less. Well said. Its not that hard to understand, folks.