3 ms·
I disagree with only 1 way to write programs in Go. Go is not an old Fortran (see [1] about "the only real structure is an array") so there is always choice be
by thesz 6y ago
I disagree with only 1 way to write programs in Go.
Go is not an old Fortran (see [1] about "the only real structure is an array") so there is always choice between array-of-structures and structure-of-arrays.
[1] https://www.ee.ryerson.ca/~elf/hack/realmen.html https://www.ee.ryerson.ca/~elf/hack/realmen.html
Haskell (and C++ for that matter) can hide the difference with associated types (and templates).
PS
Speaking about arrays - I once read Go's specification for some obscure fun and realized that I read a third of it and still am reading about arrays and stuff and not about programming.
- deleted 6y ago[deleted]