Closed danglotb closed 4 years ago
Hi,
I propose to refactor conversions, i.e. NarrowingConversion and WideningConversion, by introducing a common supertype Conversion, with all the common code.
NarrowingConversion
WideningConversion
Conversion
The supertype uses templates method to allow sub-classes to specify the behavior.
The proposal would add complexity (one additional class) without bringing any special benefit.
Hi,
I propose to refactor conversions, i.e.
NarrowingConversion
andWideningConversion
, by introducing a common supertypeConversion
, with all the common code.The supertype uses templates method to allow sub-classes to specify the behavior.