Remix.run Logo
muti 5 days ago

  if (!same) {
    return;
  }

  if (!number) {
    return;
  }

  if (!of_braces) {
    return;
  }

  println("but easier to read")
esafak 5 days ago | parent [-]

Yes, you should definitely unnest functions and exit early. But the null-coalesced version is shorter still.