Readers debate trailing comma syntax
3 Sep 22 10:57 AM · 1d ago · 5 comments · 1 source · development 3 of 7
Discussion splits sharply on the trailing comma feature. Some defend it as a quality-of-life feature that simplifies code reorganization, while others express visceral opposition to the syntax.
“Powerful visceral disgust at allowing trailing commas.”
composite_higgsBlog author Programming language designer/writer
The whole story postscomments the bright band is this development · numbered dots are the others · click one to jump
What people said 4 voices · best of 5 · verbatim
-
Why? It’s an incredibly basic quality of life feature.
-
why? im a huge fan and use it all over the place, it just makes adding, reorganizing, and removing items more encapsulated
-
You might also like: [Let's Stop Copying C](https://eev.ee/blog/2016/12/01/lets-stop-copying-c/) Zig has a good take on [multi-line string literals](
-
You're right. Go whole hog and treat them as whitespace, like Clojure & EDN. So comfortable to not worry about misplacing them.
All 7 developments of Blog post on programming language design principles gains… →
LobstersHacker News