Comment

Comment by wiradikusuma

I guess I'm the minority here, I prefer "if else" with the happy path inside the if.

Returning early gives me mental overhead of keeping the "elses" on my head, and doing it in Scala makes the code look more verbose.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton