Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • I know this sounds cliché, but "why did I have to scroll so far to find the best answer?" I am always dumbstruck when I see return\n as an argument FOR semicolons. And in my experience, most of the times I see a line starting with a brace, it's because someone's trying to be fancy rather than readable — with the exception of self-executing anonymous functions. Commented Apr 22, 2021 at 21:55
  • 1
    Haha if I wrote that again today, then less smugly but with the same reasoning: Hiding en existing language rule is worse than making it apparent. And I completely agree about the “trying to be fancy”. Commented Apr 23, 2021 at 9:49
  • Glad to hear from you! I happen to code alone, so no semicolons for me — and no fanciness either. Commented Apr 24, 2021 at 3:33
  • @flyingsheep: How about if a line start with a regular expression? Or a template string? Commented May 25, 2021 at 11:14