|
|
|
|
|
by yencabulator
3 days ago
|
|
Go fundamentally cannot not have a zero value. For Option that could be fine, you can say zero value is None and solve the superficial issue, but you have no way of preventing the x in Some(x) from being a zero value. For Result, zero value being Ok(zero_value) seems like a very bad idea. Go's idea of zero values is everywhere in the language spec. Removing it would be Go2, not the same language. |
|