June 08, 2022

On Wednesday, 8 June 2022 at 06:45:24 UTC, forkit wrote:

>

On Wednesday, 8 June 2022 at 06:14:58 UTC, Ola Fosheim Grøstad wrote:

>

There would be no downside if D was willing to take a breaking change, but that is unlikely.

Huh?

private(this) ..(for example) is not a 'breaking' change. It's completly opt-in.

D should stop adding more ugly complexity.

@it @is @dying @from @1000 @well-meaning @cuts

>

That's cause, perhaps, to those whom it matters, they end up deciding not to use D.

If this one thing is the reason they leave then they would have left anyway!!

>

The proof is already there - i.e. C++/Java/C# programmers, already use and rely upon this feature. Imagine if those lanaguages took it away.

Imagine if you took features away from Haskell, clearly D must have everything Haskell has! Not to mention Rust or Php!!

Proof failed, but your line of reasoning does explain why D @is @bleeding @from @1000 @well-meaning @cuts...

June 08, 2022
On Wednesday, 8 June 2022 at 06:56:50 UTC, Walter Bright wrote:
> On 6/7/2022 5:47 AM, forkit wrote:
>> Instead, it deliberately, intentionally, proudly, leaves this important aspect in software development to the programmer(s).
>
> Yeah, well, the alternative is "friend" classes, which are an abomination.
>
> The unit of encapsulation in D is the module, not the class.

But the abomination, is what you already have ;-)

Cause *everything* is a friend. It can't get much worse than that.

But wait, it does get worse ...  you (the programmer) got no say it.

You cannot unfriend in D (except through a series of silly workarounds, that even then, just give you 'the appearance' that you've unfriended - they still your friends, should they ever show up on the scene.

You got not say it. That's the real 'abomination'.

June 08, 2022

On Wednesday, 8 June 2022 at 07:04:48 UTC, Ola Fosheim Grøstad wrote:

I don't care about attributes. I can add them if I want .
You add so much yourself!
Attribute can be deduced!!!
A simple problem , you have made it so complicated.

June 08, 2022
On Wednesday, 8 June 2022 at 07:04:48 UTC, Ola Fosheim Grøstad wrote:
>
> Imagine if you took features away from Haskell, clearly D must have everything Haskell has!  Not to mention Rust or Php!!
>
> Proof failed, but your line of reasoning does explain why D @is @bleeding @from @1000 @well-meaning @cuts...

Sorry, but what percentage of programmers in the world programmer in Haskell?

Is that even a language? ;-)

Compare that to those that programmer in C++, Java, and C#.

i.e. The vast majority of the worlds programmers have compile time enforcement of the hidden part of their abstraction. If it provides little or no benefit, why is it there?

if 'private(this)' is too much for the D community to handle, then ya'll got bigger problems for sure ;-)
June 08, 2022

On Wednesday, 8 June 2022 at 07:08:54 UTC, zjh wrote:

>

A simple problem , you have made it so complicated.

Isn't it out of the box? Why linter?

June 08, 2022

On Wednesday, 8 June 2022 at 07:15:18 UTC, zjh wrote:

>

On Wednesday, 8 June 2022 at 07:08:54 UTC, zjh wrote:

>

A simple problem , you have made it so complicated.

Isn't it out of the box? Why linter?

Module without class as encapsulation, is there only 'd' in the world?
Yes, we are the first!

June 08, 2022

On Wednesday, 8 June 2022 at 07:07:45 UTC, forkit wrote:
they still your friends, should they

>

ever show up on the scene.

With these friends, what enemies do you need!

June 08, 2022
On Wednesday, 8 June 2022 at 07:03:10 UTC, zjh wrote:
> On Wednesday, 8 June 2022 at 06:45:24 UTC, forkit wrote:
>
> You need to submit `bugzilla`, or you need a `dip`.
> Or convince the stubborn Walter.

Life is too short ;-)

Walter almost certainly gets the last say in this particular matter anyway - and I'm certainly not ignorant of this fact ;-)

On the otherhand, my C# compiler, my C++ compiler, and my Java compiler, all already does this, for me.

So the case for using D for anything other than simple console apps, at least in my case, is diminished.

I don't want to be told I have to do the one-class-per-file thing, and I don't want to have to go off and write a linter/static-analyser. I just want the compiler to ensure my code is doing what I expected it to be doing, and not tell me, 'bugger off, go do it yourself'.

June 08, 2022

On Wednesday, 8 June 2022 at 07:30:43 UTC, forkit wrote:

>

'bugger off, go do it yourself'.

The source code is all there. Even, you can fork it and make your own compiler!

June 08, 2022
On Wednesday, 8 June 2022 at 07:14:32 UTC, forkit wrote:

>
> Is that even a language? ;-)

Haskell is The Language!