Discussion Thread: DIP 1042--ProtoObject--Community Review Round 1

Adam D Ruppe destructionator at gmail.com
Fri Jan 14 16:12:57 UTC 2022


DIP wrote:
> As a consequence, these methods make it difficult to use Object 
> with qualifiers or in code with properties such as @nogc, pure, 
> or @safe

But... RazvanN wrote:
> I find it hard to believe that people write libraries
> where they simply type a parameter as being Object.

This DIP is so bad its own steward is arguing against it!

Meanwhile on the topic is just changing things in Object,

RazvanN wrote:
> failure will be clear and arguably it would be justifiable
> because the defaults for opCmp/toHash simply return the
> address of the class.


Actually the address is a pretty useful default hash but indeed, 
if changing these are important, a mildly breaking change with 
clear deprecation migration path would be justified.


More information about the Digitalmars-d mailing list