Comment

Comment by stuaxo

Related:

Within a function, I'm a fan of early bail out.

While this goes against the usual advice of having the positive branch first, if the positive branch is sufficiently large you avoid having most of the function indented.

parent stuaxo 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton