Discussion Thread: DIP 1044--Enum Type Inference--Community Review Round 1

Walter Bright newshound2 at digitalmars.com
Sun Nov 20 21:32:16 UTC 2022


On 11/20/2022 1:56 AM, Timon Gehr wrote:
> I have somewhat mixed feelings about implicit `with`. On one hand, it's even 
> more convenient than `$e` `_.e`, `:e` etc, but on the other hand it's even less 
> predictable for a user where it will work, and it can shadow variables from 
> outer scopes (which is also a breaking change).

Consider that we already have implicit with for field access within non-static 
member functions. I.e. `a` instead of `this.a`. Nobody has complained about it 
shadowing.

But yes, it would be a (small) breaking change.


More information about the Digitalmars-d mailing list