With this proposal, can you tell whether the following function F
returns one argument (a function) or two arguments (a function and an
error) :

func F() func(string) []byte, error {
   blah
}

Rémy.

2017-07-23 18:18 GMT+02:00 Gert <gert.cuyk...@gmail.com>:
> I personally don't think () is necessary for output types and is only
> confusing with the function attributes
>
> Example
>
> func Hello(b string) ([]byte, error) {
>   ....
> }
>
> func Hello(b string) []byte, error {
>   ....
> }
>
> func Hello(b string) a []byte, b error {
>   ....
> }
>
> Feel free to counter argument against the proposal or if already proposed
>
> --
> 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.

-- 
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