4 ms·
The "Complex multi-clause function" is debatable. The refactored example forces the caller to use the specific function for each struct type which can be good
by conradfr 4y ago
The "Complex multi-clause function" is debatable.
The refactored example forces the caller to use the specific function for each struct type which can be good or bad depending on the goal of the code.
Also due to syntax colouring I find the "bad code" actually more readable.