3 ms·
It would not be for cleverness, much less for optimization (is it even faster?) For some reason every time I see a condition I cringe mentally. There's somethi
by BoppreH 16y ago
It would not be for cleverness, much less for optimization (is it even faster?)
For some reason every time I see a condition I cringe mentally. There's something in a "for" loop that makes me uncomfortable and god, using "map", "filter" and micro branching would help a lot.
I'm just thinking of what I would like to see and checking it against the opinion of others.
- mrj 16y agoMaybe 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.