November 03, 2022
On Thursday, 3 November 2022 at 05:57:57 UTC, UmmReally wrote:

> Why you so against people having a choice to do in D, what they can do in any other major programming language? I don't get it. Maybe it's you trolling us?

I'm happy for you that your private-to-the-class fork of dmd makes you happy, but your repeated derailing of threads under a variety of usernames isn't doing anyone any good. It certainly isn't going to convince anyone to change the behavior of private. So please, let's drop it in this thread.

Thanks!
November 03, 2022

On Thursday, 3 November 2022 at 05:57:57 UTC, UmmReally wrote:

>

Why you so against people having a choice to do in D, what they can do in any other major programming language? I don't get it. Maybe it's you trolling us?

Don't try to persuade them, they are stubborn.

This is also the reason why the D community is so small.

November 03, 2022

On Thursday, 3 November 2022 at 06:42:55 UTC, zjh wrote:

>

On Thursday, 3 November 2022 at 05:57:57 UTC, UmmReally wrote:

>

Why you so against people having a choice to do in D, what they can do in any other major programming language? I don't get it. Maybe it's you trolling us?

>

This is also the reason why the D community is so small.

GC can be an option, but it is a must.
So 'D' missed its time! The price it pays for it is unique vast!

November 03, 2022

On Friday, 28 October 2022 at 09:51:04 UTC, Imperatorn wrote:

>

Hi guys,

Just wanted to remind you that, D maybe isn't that bad.

[...]

Summary for new users:

D rox

November 03, 2022
On 11/2/2022 9:54 PM, Max Samukha wrote:
> The millions of lemmings might be right in this case. There seems to be no good reason to think module-level is superior to class-level. It is definitely surprising and annoying to a lot of programmers coming from class-based OOP languages.

The biggest class based language (Java) does not allow more than one class in a module, so the issue is moot.

Therefore, when writing code in Java-style, this won't be an issue, either.
November 03, 2022
On Thu, Nov 03, 2022 at 06:13:13PM -0700, Walter Bright via Digitalmars-d wrote:
> On 11/2/2022 9:54 PM, Max Samukha wrote:
> > The millions of lemmings might be right in this case. There seems to be no good reason to think module-level is superior to class-level. It is definitely surprising and annoying to a lot of programmers coming from class-based OOP languages.
> 
> The biggest class based language (Java) does not allow more than one class in a module, so the issue is moot.
[...]

That's not entirely accurate. Java allows multiple classes in a module, provided only one of them is a public class. You can have an arbitrary number of private and nested classes within a single module.


T

-- 
The problem with the world is that everybody else is stupid.
November 04, 2022
On Friday, 4 November 2022 at 01:13:13 UTC, Walter Bright wrote:
> On 11/2/2022 9:54 PM, Max Samukha wrote:
>> The millions of lemmings might be right in this case. There seems to be no good reason to think module-level is superior to class-level. It is definitely surprising and annoying to a lot of programmers coming from class-based OOP languages.
>
> The biggest class based language (Java) does not allow more than one class in a module, so the issue is moot.

C# fixed that.

>
> Therefore, when writing code in Java-style, this won't be an issue, either.

Every quirk has a workaround.

November 04, 2022
On 11/3/2022 8:24 PM, H. S. Teoh wrote:
> Java allows multiple classes in a module,
> provided only one of them is a public class. You can have an arbitrary
> number of private and nested classes within a single module.

That "one public class" is the module.

November 05, 2022
On 05/11/2022 3:09 AM, Walter Bright wrote:
> On 11/3/2022 8:24 PM, H. S. Teoh wrote:
>> Java allows multiple classes in a module,
>> provided only one of them is a public class. You can have an arbitrary
>> number of private and nested classes within a single module.
> 
> That "one public class" is the module.

Just so ugh we keep things to the correct terminology (for other readers):

Java has modules. They are not mapped to a file. The above is regarding files not (Java) modules.

https://en.wikipedia.org/wiki/Java_Platform_Module_System
November 05, 2022
On Friday, 4 November 2022 at 14:13:59 UTC, rikki cattermole wrote:
> On 05/11/2022 3:09 AM, Walter Bright wrote:
>> On 11/3/2022 8:24 PM, H. S. Teoh wrote:
>>> Java allows multiple classes in a module,
>>> provided only one of them is a public class. You can have an arbitrary
>>> number of private and nested classes within a single module.
>> 
>> That "one public class" is the module.
>
> Just so ugh we keep things to the correct terminology (for other readers):
>
> Java has modules. They are not mapped to a file. The above is regarding files not (Java) modules.
>
> https://en.wikipedia.org/wiki/Java_Platform_Module_System

Which honestly, that should be even more of an indicator that D should drop the one module per file restriction, and allow multiple modules in a single file.

- Alex