Worst ideas/features in programming languages?

russhy russhy at gmail.com
Mon Oct 11 18:27:29 UTC 2021

> Worst features implemented in a non-toy language

It's been a while i haven't used anything other than D, so i 
don't have much to say, i'll need to research to remember first

On top of my head, i think the worst feature in any language is 
C/C++ header system

Sometimes, in rare occasions it can be handy, but most of the 
time it is a pain in the butt

> Worst features (in your opinion) in D

     - class (reference type)
     - GC as a feature
     - !() for templates (not really a feature, more like a syntax 
issue, way to similar to functions)
     - being abot to use ! with optional parentheses, countless 
times i got bit by:
         ``Array!int* array;``  but i wanted ``Array!(int)* 
array;`` instead..

> Features you'd like to see in D

     - tagged union (built in, not as std/lib)
     - interface / signature for structs (built in, not as std/lib)
         - alternatively, reintroduce the * for classes
     - enum literals (being able to omit the enum name)
             enum MyEnum { A, B, C}
             MyEnum e = :A;
             switch (e)
             case :A: break;
             // could be :, ., $, ! but that is not the point

More information about the Digitalmars-d mailing list