3 ms·
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, uninitialize
by virgoerns 3y 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.
- bilinguliar 3y agoGo has “zero” values. The zero value of Boolean is false. https://go.dev/tour/basics/12 https://go.dev/tour/basics/12