4 ms·
The GOOD refactor would only work if the condition didn't depend on `walrus` and helps to make that fact explicit. If you apply "push fors down" again you end u
by gsuuon 3y ago
The GOOD refactor would only work if the condition didn't depend on `walrus` and helps to make that fact explicit. If you apply "push fors down" again you end up with:
if condition {
frobnicate_batch(walruses)
} else {
transmogrify_batch(walruses)
}