2 ms·
That's really good that it's so dumb that you don't need to jump through hoops to think of the way to do it. Clever! Just code and go!
by 72deluxe 11y ago
That's really good that it's so dumb that you don't need to jump through hoops to think of the way to do it. Clever! Just code and go!
- dmacvicar 11y agoIt is not unicorns either. * Transforming a collection means doing boring for loops instead of one-liners. * interfaces/duck typing is great. But hey, []interface{} does not fit into interface{}. * Structs with fields are encouraged, but there is no uniform Uniform access principle and that sucks. * etc But definitely, my own "science" confirms that it turned to be out less of a problem (for my own usage) compared to better languages with more friction.
- sacado2 11y agoYep. I've been bored by the fact that putting an []int into an []interface{} doesn't work, too (although the reason is obvious).