Is D really that bad?

H. S. Teoh hsteoh at qfbox.info
Fri Nov 4 03:24:12 UTC 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.


More information about the Digitalmars-d mailing list