|
|
|
|
|
by kiitos
998 days ago
|
|
Go offers a programming interface at a lower level of abstraction than languages like Python or Ruby. What you call boilerplate or housekeeping, I consider to be mechanical sympathy. Modulo extremes like Java, the bottleneck for programmers understanding code is about semantics, not syntax -- effectively never the literal SLoC in source files. It's not as if for i := range x {
x[i] = fn(x[i])
}
is any slower to read, or more difficult to parse, or whatever, than e.g. x.transform(fn)
in any meaningful sense. |
|
between
and I'll take the second form any day. You express the flow of information, and think about transformations to your collections.