|
|
|
|
|
by im-a-baby
1328 days ago
|
|
No not using pointers would not solve the issue. The issue is that the specific error implementation type is part of the method signature. If you returned type MyError instead of *MyError, then it would be impossible to return nil from the method because only pointers can be nil. |
|