|
|
|
|
|
by lpapez
892 days ago
|
|
This was my impression coming to Go as well (from Python and PHP) but since then I've changed my mind and somehow find it easier to unpack a small for loop than a HOF with a lambda function argument. When you introduce lambdas/closures/HOF you immediately have to think about scope rules, non-local references etc. Meanwhile, a foor loop is just a for loop. |
|
(It doesn't bother me, just noting the same complexities do come up pretty often).