3 ms·
You are absolutely correct. Go has generics. It just doesn't have user defined ones. If the language designers thought an Option/Result/Try was valuable they
by kasey_junk 10y ago
You are absolutely correct. Go has generics. It just doesn't have user defined ones.
If the language designers thought an Option/Result/Try was valuable they could add it. Just like they could add Futures/Promises and concurrent safe maps if they wanted to.