public string Execute(int integer, string str, bool boolean) {
string result;
if (isValidInteger) {
result = validateStringAndBool(str, boolean);
} else {
result = “Error: Integer is too small”;
}
return result;
} private string validateStringAndBool(string str, bool boolean) {
if (!string.IsNullOrWhiteSpace(str)) {
return isValidBoolean(boolean)
} else {
return “Error: String is null or empty”;
}
}
private string isValidBoolean(bool boolean) {
if (boolean) {
return “Success”;
} else {
return “Error: Incorrect Boolean”;
}
}
And yeah, I can't see how this has anything to do with tail call optimization other than a fluffy analogy to stacks - mental and programmatic.
https://www.glassdoor.com/Reviews/GitHub-Reviews-E671945_P3....