2 ms·
Looking at some benchmarks it does look like newer versions of Go at least have pretty reasonable performance for type assertions. That makes the situation a l
by rebeccaskinner 8y ago
Looking at some benchmarks it does look like newer versions of Go at least have pretty reasonable performance for type assertions. That makes the situation a little less bad, but doesn't negate the general ugliness of having type assertions every time you want to get a value back out of a generic data structure.
- weberc2 8y agoFully agree; dealing with `interface{}` is generally pretty tedious.