2 ms·
> Where you see a hack I see an elegant design. https://groups.google.com/g/golang-dev/c/r4rdPdsH1Fg/m/JG3Wlr0LwawJ https://groups.google.com/g/golang-dev/c/r4
by jrimbault 2y ago
> Where you see a hack I see an elegant design.
https://groups.google.com/g/golang-dev/c/r4rdPdsH1Fg/m/JG3Wlr0LwawJ https://groups.google.com/g/golang-dev/c/r4rdPdsH1Fg/m/JG3Wl...
> I can think of two examples of major aesthetic shifts in Go code that seemed ugly at the time but were adopted because they simplified software engineering and now look completely natural.
https://research.swtch.com/vgo-principles https://research.swtch.com/vgo-principles
> type Duration int64
https://github.com/golang/go/blob/519c0a2323700934cbec97b75df92917108548be/src/time/time.go#L586-L589 https://github.com/golang/go/blob/519c0a2323700934cbec97b75d...
> default values
https://gotipplay.golang.org/p/jS6wwznSR7F https://gotipplay.golang.org/p/jS6wwznSR7F