4 ms·
Maybe it's a coding style that suits you then. That's cool. I just caution against putting it in such simple terms. I hate it when I read code by somebody who
by mrj 16y ago
Maybe it's a coding style that suits you then. That's cool.
I just caution against putting it in such simple terms. I hate it when I read code by somebody who latched on to the latest trend and then ruthlessly bent their style to match the new way, whether it made sense or not.
As for performance, it would have to be tested. In some languages with first-class closures, a lot of code like the examples might seriously strain the garbage collector (if present). There might be a ton of young objects to clean up, all the time. That was my only thought on it.