loading...

re: What are your favorite programming language syntax features? VIEW POST

FULL DISCUSSION
 

golang's "empty" switch statement (a cleaner else-if).

switch {
case cut == true:
    return superReducedString(result)
case result == "":
    return "Empty String"
default:
    return result
}
 

The way switch case work on golang alone is already interesting 😁

Code of Conduct Report abuse