Hacker News new | ask | show | jobs
by runevault 1219 days ago
You don't HAVE to write lines that way, though it is the convention which as a mostly outsider I've never been a huge fan of. Think about languages like c# where you often have multiple closing curly braces but the convention is separate lines. You could write them like Lisp if you wanted but no one does.
1 comments

I assume "))))" is idiomatic because of the typical depth of nesting required in languages like this. If you always used newlines and indents to align the closing character, you'd waste a lot of vertical space. That's less of an issue in something like C# where you don't have to nest as deeply.