4 ms·
Go 1.24's `omitzero` is another of the best additions to the ecosystem in years
- deleted 2y ago[deleted]
- zero_shift 2y agoI've got a question for the Go people, it's not intended to be adversarial: What exactly does Go get out of its zero values system? What does the language get from having this ambiguity built in to every type?
- FreezerburnV 2y agoNo uninitialized values, same as Java. You don’t get junk values that are whatever were in that memory previously. It’s actually a lack of ambiguity in that an int will always be 0 when initialized, not like 19692847376 sometimes.