Non-ugly ways to implement a 'static' class or namespace?
Salih Dincer
salihdb at hotmail.com
Sun Jan 29 17:52:47 UTC 2023
On Saturday, 28 January 2023 at 23:19:35 UTC, ProtectAndHide
wrote:
> On Wednesday, 25 January 2023 at 15:43:46 UTC, ryuukk_ wrote:
>>
>> using static class and static function is not "OOP way" of
>> doing things, it's a hack to mimic procedural style because
>> Java doesn't have proper modules / scoping
>>
>> mimicking the shortcomings of Java is a bad idea imo
>>
>> D empowers you to write simple yet effective code, you should
>> give it a try and embrace it
>
> Classes (and this includes static classes) are 'one' means of
> encapsulation.
I hate a world with the classes. I can do almost anything I want
without the classes. The software world soared above C without
classes.
SDB at 79
More information about the Digitalmars-d-learn
mailing list