Worst ideas/features in programming languages?

Nicholas Wilson iamthewilsonator at hotmail.com
Fri Oct 15 03:38:56 UTC 2021


On Thursday, 14 October 2021 at 18:55:53 UTC, IGotD- wrote:
> 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

they added `if constexpr` not `static if`, which is another thing 
to add to the list of worst features implemented. The critical 
difference is that `if constexpr` always adds a scope whereas 
`static if` doesn't. Adding a scope if you need it costs you {}. 
This prevents `if constexpr` from being able to conditionally 
declare declarations (variables, members, members functions etc.)



More information about the Digitalmars-d mailing list