Worst ideas/features in programming languages?

IGotD- nise at nise.com
Thu Oct 14 18:55:53 UTC 2021


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

This is not a feature but a language design question. One of the 
worst thins you can ever do to language is to mix language 
paradigms. This totally messes up the language as well as your 
brain.

One of example is C++ template programming which is based on ML. 
Lately in newer C++ they have tried to taint that mistake up by 
adding static if and and other things. However, this hasn't 
completely removed the difficulties with C++ templates and they 
have added so many things that you might end up even more 
confused.

You would think that C++ was the last making that mistake but no, 
Rust did it again. Rust decided to include macro_rules which uses 
a declarative syntax. Just as in C++ this totally messes up the 
readability and your way of thinking. Later on Rust realized the 
mistake and added function macros as well.

Do not make computer languages schizophrenic by mixing 
programming paradigms.


More information about the Digitalmars-d mailing list