> Note that programs were usually typed on as few lines as possible, because they had to be punched to punched cards or typed in at a teletype which echoed its input on paper.
I suspect this is the real reason behind "cram all the closing parentheses together on the same line" rule.
The only rationale I've seen online is in Taylor Campbell's style guide:
> Absolutely do not place closing brackets on their own lines.
> ...
> Rationale: The parentheses grow lonely if their closing brackets are all kept separated and segregated.
Yeah, right.
Anybody know anything about how this rule came to be?
weknowbetter · 2026-10-27 02:18:01 UTC
This drives me nuts. I love LISP but refuse to pretend writing `)))))))` is reasonable.
uncletaco · 2026-10-27 02:30:09 UTC
Why are you writing ')))))' instead of your closing parenthesis being autogenerated. Sounds like a recipe for failure.
bitwize · 2026-10-27 08:24:53 UTC
The 2026 version is: Why are you writing Lisp instead of your code being autogenerated. Sounds like a recipe for failure.
aezart · 2026-10-27 17:00:22 UTC
Automatic closing parenthesis is the first feature I disable in every IDE I use. I find it incredibly obnoxious.
greenbit · 2026-10-27 02:32:46 UTC
))))))) isn't so bad, but )))))))) is just getting ridiculous. You have to draw the line somewhere
isr · 2026-10-27 02:58:06 UTC
picolisp has an interesting solution to this. A single ']' will close all open )'s for that block of code
packetlost · 2026-10-27 04:40:16 UTC
That has to be a nightmare for parsers lol
ashkankiani · 2026-10-27 07:20:04 UTC
not really. it's just pop all of the stack and return to depth 0. you can still detect imbalanced parens, but i'm not sure how it affects the provenance question of where a missing one would point out in errors.
mfex · 2026-10-27 13:05:12 UTC
picolisp also has an interesting closing paren style by its author, with a space before closing parentheses if the open parenthesis is not on the same line:
(- 1
(+ 2
(* 3 (/ 4 5)) ) )
corroclaro · 2026-10-27 08:28:43 UTC
My editor (emacs) shows how I close the scopes and it is easy enough. I'm not sure why writing
)
)
)
)
)
would be so much better.
NooneAtAll5 · 2026-10-27 10:26:01 UTC
why would outer scope have more tabulation?
a-french-anon · 2026-10-27 13:35:10 UTC
You don't read Lisp via the parentheses, but via the indentation. It's almost like Python but the (s and )s are for the computer to see.
a96 · 2026-10-27 07:12:22 UTC
Heh, I remember that and personally answering no when he complained about my paren formatting. I miss that channel.
matt_daemon · 2026-10-27 03:07:23 UTC
This is somewhat confusing as there is a fairly well known toy Lisp interpreter called Lispy written by Peter Norvig
Comments
LISPy things you can do in 64K bytes of core (2019) - https://news.ycombinator.com/item?id=44490099 - July 2025 (4 comments)
I suspect this is the real reason behind "cram all the closing parentheses together on the same line" rule.
The only rationale I've seen online is in Taylor Campbell's style guide:
> Absolutely do not place closing brackets on their own lines.
> ...
> Rationale: The parentheses grow lonely if their closing brackets are all kept separated and segregated.
Yeah, right.
Anybody know anything about how this rule came to be?
https://www.norvig.com/lispy.html