3 ms·
>What used to be one int, one comparison and one increment, is now fifteen objects created, seven levels of indirection and at least a few library calls. This
by carlmr 5y ago
>What used to be one int, one comparison and one increment, is now fifteen objects created, seven levels of indirection and at least a few library calls.
This sounds like the 90s-2000s enterprise OOP GoF pattern nightmares. I'm not sure lambdas are at fault here, since most languages can efficiently handle those. To me the not too crazy functional programming resurgence is actually relief from these object hierarchies distributed over many files which the computer and I don't like. Of course the architecture astronauts are still out and about talking about adding levels of indirection we can't even imagine yet