Comment

Comment by d--b

I disagree with the comments here. This is mostly not good advice.

Ifs exist because most real world problems require them. “If the box is checked, do this, otherwise do that”.

Masking if statements by syntactic sugar doesn’t serve any purpose in my opinion and if anything it makes the code more opaque, or worse, may force you to duplicate code...

parent d--b 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton