Re:Lambdas in C
by gok on Friday July 01, 2011 @05:24PM
(#2720215)
Is that really that much better than C blocks?
[ Parent
| on HN ]
Re:Lambdas in C
by juiceandjuice on Friday July 01, 2011 @05:36PM
(#2720249)
I personally think so, as I think blocks in C are a clumsy way around the issue (probably because C doesn't natively have garbage collection) and it feels natural in go, but I know others will disagree.
Also, I don't think you can make it anonymous, can you?
func(x int, y int){fmt.Printf("%d\n",x+y)}(2,4)