Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
virgoerns
· 2y ago · 0 comments
Does Go default-initialize booleans by any chance? In C, which author had used, this program would be undefined behavior due to reading non-static, uninitialized bool.
Comments
[–]
bilinguliar
2y ago
Go has “zero” values. The zero value of Boolean is false.
https://go.dev/tour/basics/12