Is D really that bad?
12345swordy
alexanderheistermann at gmail.com
Sat Nov 5 16:23:34 UTC 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
More information about the Digitalmars-d
mailing list