#golang #pop #quiz
func main() {
var val int
println(&val)
f(10000)
println(&val)
}
func f(i int) {
if i--; i == 0 {
return
}
f(i)
}
this program prints:
[playground (spoilers) https://play.golang.org/p/JQSqP3yV3Et ]
-
Prikaži ovu nit
Roberto Clapis 🏳️🌈⚤ 🇪🇺 🇮🇹 🇨🇭 je proslijedio/a tweet korisnika/ceSameer Ajmani
Roberto Clapis 🏳️🌈⚤ 🇪🇺 🇮🇹 🇨🇭 je dodan/na,
Sameer Ajmani @Sajma
Odgovor korisnicima @val_deleplace @empijei
Yeah, that's my guess, too. There's a nice article online about the switch from the original segmented stacks to contiguous stacks, which require copying to new stacks for growth: https://blog.cloudflare.com/how-stacks-are-handled-in-go/amp/ …
23:05 - 16. pro 2019.
0 replies
0 proslijeđenih tweetova
1 korisnik označava da mu se sviđa
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.
with parallel programming and security. (he/him)