Worst ideas/features in programming languages?

Rumbu rumbu at rumbu.ro
Sat Oct 16 06:43:04 UTC 2021

On Monday, 11 October 2021 at 15:59:10 UTC, Atila Neves wrote:
> I'm brainstorming about what I'll talk about at DConf, and 
> during a conversation with Walter I thought it might be cool to 
> talk about:
> * Worst features implemented in a non-toy language
I work mostly in c#
- records implementation
- object promotion
- array covariance
- half baked generics
- operator overloading verbosity
- mutability by default
- New nullable semantics

> * Worst features (in your opinion) in D

- Module private instead of class private
- Integer promotion
- Phobos names (cryptic, completely different from other 
- Autodecoding
- Foreach_reverse (useless)
- Two mechanism for foreach (opApply & popFront)
- Traits as a library
- Real (D standardised primitive types, but here it comes with a 
machine dependent one)
- ff as init value for chars
- Dub as package manager
- Unqualified parameter passing (if a parameter is ref, you must 
pass it prefixed with ref)

> * Features you'd like to see in D

- Unittest naming
- Benchmarks included in language similar to unittests
- Templated class/interface inheritance
- Shared (truly implemented)
- Cent (truly implemented)
- Range concept as language built in
- Safe by default
- Nullable/Optional as language feature

> Ideas? Examples?
> Thanks!

More information about the Digitalmars-d mailing list