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

Go has “zero” values. The zero value of Boolean is false.

https://go.dev/tour/basics/12