3 ms·
Haven't looked into it for a while, but, it used to undermine the JIT compiler to use multiple return statements in a single method in Java. That said, I entir
by ztjio 9y ago
Haven't looked into it for a while, but, it used to undermine the JIT compiler to use multiple return statements in a single method in Java.
That said, I entirely disagree with the premise. I find it vastly easier to reason about a function/method that does not return early. To me, this is on par with writing switch statements that don't cover all the possible values: a sin.