DIP 1030--Named Arguments--Community Review Round 1 Discussion

Timon Gehr timon.gehr at gmx.ch
Wed Feb 19 16:42:15 UTC 2020


On 13.02.20 02:40, Walter Bright wrote:
> On 2/11/2020 12:49 AM, Timon Gehr wrote:
>> If you change the name of a field, code that accesses the field in the 
>> standard way also breaks. It would be rather weird if people 
>> complained specifically about broken initializers.
> 
> If the code followed good encapsulation techniques, it wouldn't any more 
> than changing the name of a parameter would necessitate changing the 
> body of the function.

Which is exactly what defeats the argument that spawned this sub-thread.


More information about the Digitalmars-d mailing list