|
|
|
|
|
by dontlaugh
1119 days ago
|
|
An Optional defaulting to None when created can still fail to compile if you don't check whether it's None when you use it. Same with a Result defaulting to an Error. The problem with nil for any pointer or interface is that you can compile code dereferencing it without first checking if it's nil. |
|
Yes, Go doesn't stop you from making mistakes. I think we've already rehashed that a couple of times...