DEV Community

Discussion on: ✔||🤢 Commit or Vomit | Switch(true)

 
jmdejager profile image
🐤🥇 Jasper de Jager

I'll save it for another ✔️||🤢 good idea.
Just have to come up with a good example 😊 and not posting a new one every day is hard but I think this is going to be a weekly recurring item from now on 😎

Thread Thread
 
edave64 profile image
edave64

I personally like to drop the braces IF the condition is small and the statement ends control flow and logically can't have anything after, like return, throw, continue, break, etc.