Functional Programming, Csharp, Programming.
Primitive Obsession The other way to get rid of exceptions would be to change the input arguments type. We can have positiveInt instead of int for the second argument: static class Math { public static int Divide(int a, positiveInt b) { return a / b; } } This way we make sure the function won’t be