Worst ideas/features in programming languages?

russhy russhy at gmail.com
Mon Oct 11 21:38:17 UTC 2021


On Monday, 11 October 2021 at 20:48:47 UTC, 12345swordy wrote:
> On Monday, 11 October 2021 at 18:27:29 UTC, russhy wrote:
>>> Worst features implemented in a non-toy language
>>     - GC as a feature
> This GC phobia is hurting the d language.
>> - class (reference type)
> WHY!?
>
> -Alex

it is not GC phobia, i use the GC for some projects and i'm ok 
with it

it just is when you don't need it, you need to be careful with 
@nogc, and there is no way to globally enforce a @nogc behavior


these issues would be solved if GC was introduced as a library, 
or as a toggleable feature without having to resort to -betterC

that's one strength D has over C#, being able to not rely on the 
GC, even thought i don't like the comparison myself, D still is a 
system language

Countless hours wasted working aroung GC limitations with Unity 
(C# game engine)

If they had went with D, they wouldn't have to be this careful 
with their language! an area D should have won market share 
(engine code + scripting code at the same time!)


More information about the Digitalmars-d mailing list