|
|
|
|
|
by masklinn
1600 days ago
|
|
I have to say I’ve no idea what you mean. In function definitions I’d interpret it as type inference (and would disagree) but you specifically talk about function calls, and consider it a small change. Can you describe what you’re thinking of? |
|
Currently, you would have to invoke it like so:
But... why do you have to type "s3.GetObjectInput"? The function is taking in a concrete type (not an interface) for that argument, and there is only one possible type that you can pass in... so I agree with the person above that it should be possible to elide the type like so: Go already supports type elision in some places, such as... instead of having to type which would be equally pointless repetition.[0]: https://docs.aws.amazon.com/sdk-for-go/api/service/s3/#S3.Ge...