Re:The Wrong Aesthetic
by sosorry on Monday June 14, 2010 @10:49AM
(#1429808)
Yes, really!
I do a lot more functional programming than I do imperative programming.
An anonymous function in context of an accumulator is obvious to me.
The point that I maybe didn't make so well was that the second version is working in higher level constructs. The first version is doing a lot of integer and pointer manipulation, the second is summing across a collection.
The two versions might be speaking in different languages, to some extent, but that doesn't mean that one or the other is aesthetically wrong.
I do a lot more functional programming than I do imperative programming. An anonymous function in context of an accumulator is obvious to me.
The point that I maybe didn't make so well was that the second version is working in higher level constructs. The first version is doing a lot of integer and pointer manipulation, the second is summing across a collection.
The two versions might be speaking in different languages, to some extent, but that doesn't mean that one or the other is aesthetically wrong.