Worst ideas/features in programming languages?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Sat Oct 16 06:18:58 UTC 2021


On Monday, 11 October 2021 at 15:59:10 UTC, Atila Neves wrote:
> * Worst features implemented in a non-toy language

Difficult to say, features may not be bad in isolation, but turn 
bad when combined with other features. Features can turn bad when 
they can be abused for more terse source code in ways the 
language designers did not intend, or when scripting languages 
are used for larger programs.

But by-name parameter passing is pretty bad. Having expressions 
passed into a function executed multiple times backfires real 
fast in imperative languages. Such bugs can be difficult to 
identify.

> * Worst features (in your opinion) in D

Lack of consistency (unnecessary complexity?) in the 
meta-programming feature set / type system, but cannot be fixed 
as it would become a different language.

> * Features you'd like to see in D

Simplify the language.

Flow typing.

A type system that makes it possible for the compiler to reason 
about ownership.

Implementation: clean separation between front-end and back-end.




More information about the Digitalmars-d mailing list