4 ms·
> The call with type arguments can be omitted, leaving only the call with values, when the necessary type arguments can be inferred from the value I think if t
by tmaly 8y ago
> The call with type arguments can be omitted, leaving only the call with values, when the necessary type arguments can be inferred from the value
I think if too many different ways are offered in the generics proposal, it will work against the simplicity of the language for newcomers.
- TACIXAT 8y agoYea, I really like Go because it isn't C++2049. I was able to get writing it quickly, and I don't have to think too hard about what the right (read: most clever) way to implement something is given all the language features. I like to just write code and I think a post here said it best, Go gets out of the way and lets you build.
- scns 8y agoweeks of work can save an hour of planning
- platinumrad 8y agoNot having to provide the time argument at the callsite is by far the most intuitive way to call a generic function.