Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
compsciphd
· 7y ago · 0 comments
I don't believe go can have uninitialized values. every variable has a default "zero value"
Comments
[–]
aykevl
7y ago
Not on the heap, but it can certainly have uninitialized variables on the stack. These cannot be created in normal Go code but the optimizer may decide to leave some values uninitialized when it determines that this is safe to do.