Comment Comment by dg44768 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) } parent dg44768 3 years ago
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) }