@zigo_101 To be fair, you could replace Golang with any other programming language, and the sentence is still true.
There’re rooms for improments, though.
What's output of this program:
package main
type I interface {
M() int
}
var x = I(S{}).M()
var y = (S{}).M()
var z = one() + 1
type S struct{}
func (S) M() int { return z }
func main() {
println(x, y)
}
func one() int { return 1 }
Breaking my Twitter silence because @junyer has passed away, and this is the site where he was most active. I know we had at least a few followers in common. There is a public memorial page of sorts at https://t.co/rBLd0C5Vdq.
SPONSOR POST
Hey Gophers! 🐿️
We're giving away a FREE ticket to the upcoming #gopherconEU!
Retweet this post and follow @magicbell_io for a chance to win. Winner will be chosen at random on May 12.
#golang#conference#giveaway#tech