--

I agree though I would include state machines in the concept of if-else statements. I also don't know if this was pro-switch or anti-switch, but I'm anti-switch in fall-through languages like JS, since I feel obligated to comment `// intentional no break` every time I actually use the fall-through.

--

--

Dr. Derek Austin 🥳
Dr. Derek Austin 🥳

Written by Dr. Derek Austin 🥳

Hi, I'm Doctor Derek! I've been a professional web developer since 2005, and I love writing about programming with JavaScript, TypeScript, React, Next.js & Git.

No responses yet