3 ms·
Putting stuff in a switch means all the logic for what would be a function overload is in the same place, unlike objects where that logic would be scattered acr
by snovv_crash 11mo ago
Putting stuff in a switch means all the logic for what would be a function overload is in the same place, unlike objects where that logic would be scattered across multiple files. Variants can work better here but are less well known.