by bockris on 5/1/13, 3:08 PM with 117 comments
by taliesinb on 5/1/13, 6:09 PM
But I'm still unhappy that using named return values still requires you to put a superfluous "return;" at the end of such a function.
The whole reason I use named return values is to cut down on the boilerplate code that carries the return value around -- so why not cut out the final boilerplate 'return'? It doesn't solve any problem or add any information!
Otherwise, there are some nice improvements here. Other than the things mentioned so far, I'm glad to see reflection filling out -- the day a Go REPL will be possible is approaching.
by dtwwtd on 5/1/13, 3:31 PM
by mratzloff on 5/1/13, 8:19 PM
by schoper on 5/1/13, 3:41 PM
func hello() int {
if true {
return 0
} else {
return 1
}
}
>go run func.go
./func.go:3: function ends without a return statement
by CoffeeDregs on 5/1/13, 4:53 PM
by kristianp on 5/1/13, 9:12 PM
"It's worth mentioning the function representation change, since it means closures no longer require runtime code generation (which among other things allows the heap to be marked non-executable on supported systems)."
Anyone know what that means?
by ngoldbaum on 5/1/13, 8:47 PM
It would also be nice to have a first-class array object - from what I understand, current support for multidimensional arrays is very C-like in that you're really dealing with pointer arrays.
by bbrunner on 5/1/13, 4:55 PM
And I'm glad that they're bumping up the heap size to system-dependent values on 64bit systems. The fixed heap size of 16 GB was a really unfortunate constraint (even if it could be changed with a little hacking around).
by ameen on 5/1/13, 7:08 PM
Can actual products (Web apps in my case) be built with Go?
by knodi on 5/1/13, 4:50 PM
by timothya on 5/1/13, 3:21 PM
by pstuart on 5/1/13, 8:18 PM