Comment

Comment by dep_b

Using a sane set of enums is just a bit more typing yet so much clearer in intent. Even if it's just Success or Failure instead of a bool or int. Still not bullet proof but seeing `return Success` where it fails and checking for `if (bla == Success)` makes it a lot easier to find the problems.
parent dep_b 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton