Thanks for the article. Maybe I’m confused, but why in the section near the end about how the two recommendations go together, why is the code this:
if condition {
for walrus in walruses {
walrus.frobnicate()
}
} else {
for walrus in walruses {
walrus.transmogrify()
}
}
and not this?
if condition {
frobnicate_batch(walruses)
} else {
transmogrify_batch(walruses)
}