Adding a new design constraint to D

Ola Fosheim Gr ola.fosheim.grostad at gmail.com
Sun Jun 19 01:26:43 UTC 2022


On Saturday, 18 June 2022 at 21:17:52 UTC, Walter Bright wrote:
> Anytime one interfaces with humans, inconsistency turns out to 
> be desirable.

No.  Common mistakes is a linter/warning issue or a syntax 
redesign issue.

> Here's another inconsistency:
>
>   void func()
>   {
>       int a;
>       {
>          int a;  // error
>       }
>    }

More likely to be annoying as useful, now you need to refactor if 
you add a mixin or if you copy code.

Not being able to shadow variablenames such as «tmp» or «i» is 
just annoying.




More information about the Digitalmars-d mailing list