Those are be the sort of things that generics will enable.
It makes code harder to read and modify.
A straight for loop is infinitely better in every way.
Then again, I learned BASIC first technically, so my brain probably isn't quite right :).
DDJ had quite a few articles on how to do Lisp-in-C kind of thing.
So technically their post is correct
You can even plug a conservative GC for the full Lisp like experience.
I don't really think it has much to do with you language path but rather with the field you are working most of the time.
People who are building Rails startups for sale will have opinion different from people who build some sort of integration systems.
I rediscovered imperative programming later and found it to be such a breath of fresh air.
In Ruby the map/filter/reduce handling is very smooth, readable and useful!
Mainly, IME, because of the combination of JS map, etc., passing extra, infrequently used parameters, and functions you might want to use often accepting optional less-frequently-used parameters, which can end up interacting horribly wrong when you do:
arr.map(func)
instead of: arr.map(v => func(v))
when you want a “simple” map application.> A straight for loop is infinitely better in every way.
A straight for, for-of, or for-in loop, as appropriate, is finitely better for imperative operations that don't naturally fit map/filter/reduce but need to be performed over some set of values.
Ah, and a map that performed side effects.
Other than that it's unreadable.
https://github.com/golang/go/issues/45955#issuecomment-83235...