After looking at the latest proposal - 
and also checked a curated list of discussion at - 

However, I do find myself still interested in a case like below:

type foo struct{}

func bar(x int) func(int) int {
    return func(y int) int {
        return x + y

func main() {
    foo := 1
    result := bar(foo)(2)

I believe a function which returns another function in current Go world is 
pretty normal. I specifically mocked an example above - where the first 
parameter name appears to collide with a type name.

With that said, I guess compiler won't have any issues to figure it out 
when it is type parameter and when it is not. However, I think that's not 
trivial for a human, though.

So is this a problem or I may just have ignored anything?


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.
To view this discussion on the web visit 

Reply via email to