Kesk -*-
Jan 23, 2021

--

Hello Camile!

Generic functions can be useful for several things, such as avoiding operator overloading or simply for clearer and semantic code.

In this case, I believe that it is clearer the intentionality of using a function "calculator" that admits different operations than calling the different operations independently.

--

--

Kesk -*-
Kesk -*-

Written by Kesk -*-

Software engineer - software Enthusiast - Sci-Fi writer.

Responses (1)