4 ms·
EDIT: After thinking about it some more, there are several places where two methods are almost the same except for one line stuck in the middle. I don't know ho
by pjungwir 14y ago
EDIT: After thinking about it some more, there are several places where two methods are almost the same except for one line stuck in the middle. I don't know how to turn them inside-out in Java without spawning a bunch of tiny classes, and it's just not worth it. But with Ruby I could turn them into a single method, throw a yield in the middle, and then call it with a block. So again it comes down to no lambdas.
(Hmm, this was supposed to be an edit, but somehow I did a reply instead.)