Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)
  }


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: