3 ms·
And when you finally get them, you'll wonder how you ever lived without :-)
by networkimprov 7y ago
And when you finally get them, you'll wonder how you ever lived without :-)
- mcdee 7y agoYet having moved from (primarily) Java to (primarily) Go I find I don't miss them.
- Insanity 7y agoI had them (Java and C#) and I am happy Go does not have them. I feel like most people just miss them for collections and abuse them in other instances. And for collections Go has other tools (like generator if you really want to). Overall in the 2ish years of writing Go, I only missed them when I was learning the language coming from years of Java.
- erik_seaberg 7y agoWhen you need to switch from native maps to sync.Map, you not only have to give up type safety but rewrite all your calling code. Codegen doesn't help because you are not one of the people allowed to overload those operators.