On Sunday, August 28, 2016 at 10:07:49 AM UTC+8, Florin Pățan wrote:
>
> This request, yo take the address of a return value of a function, seems 
> to conflict with the last request made here to standardize and not have 
> exceptions to rules.
>
> And I say this because in Go a function can have multiple return values, 
> most commonly a (type, error) pair.
>
> How should that work then? Add an exception so that single value return 
> functions can be used like this? Add an exception so that when a couple of 
> values are returned then if one of them is error it doesn't take the 
> address for that? What would happen in case of more than two return 
> arguments?
>

The exception is ready added: one return result can be used in expressions. 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to