Y
Hacker News
new
|
ask
|
show
|
jobs
by
virgoerns
902 days ago
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.
1 comments
bilinguliar
902 days ago
Go has “zero” values. The zero value of Boolean is false.
https://go.dev/tour/basics/12
link
https://go.dev/tour/basics/12