Comment

Comment by barell

I agree with everything apart having if and return statement in the same line. It makes code really difficult to read.

In addition, I also like is to avoid if/else when returning bool values:

  if (a > b) {
     return true;
  } else {
     return false;
  }
Could be simply written as

  return (a > b);
parent barell 8 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton