|
|
|
|
|
by gnud
2564 days ago
|
|
Agreed - I thought this looked pretty reasonable, if a bit parenthesis-heavy, until I saw this example: func printSum(a, b string) error {
fmt.Println(
"result:",
try(strconv.Atoi(a)) + try(strconv.Atoi(b)),
)
return nil
}
When you nest the calls to try inside another method call, like this, the control flow really becomes obscured. |
|