What did you think about an implicitConversionOp ?

Walter Bright newshound2 at digitalmars.com
Sun Dec 27 09:27:05 UTC 2020


I'm speaking here from C++'s experience.

Implicit conversion operator overloading is in the category of ideas whose evil 
nature only becomes apparent after several years:

1. implicit declaration of variables

2. macros

3. operator overloading for non-arithmetic purposes

4. implicit conversion operator overloads

It's like burying your dead cat in Pet Sematary. Sure, it's cool when it comes 
back to life, but you'll be sssss-ooooo-rrrrr-eeeee !


More information about the Digitalmars-d mailing list