r/ProgrammingLanguages • u/KukkaisPrinssi • May 19 '26
Discussion List of known problems in design of existing languages?
Is there alphabetic list of desing flaws/bad ideas in various programming languages?
For exampe you might find short description of dangling-else from under d letter in list.
44
Upvotes
54
u/Hixie May 19 '26
https://www.mcmillen.dev/language_checklist.html is tongue-in-cheek but lists many issues (people have adapted it over the years to add their own pet peeves too, if you care to search for them; that link is the original).
16
u/Snatchematician May 19 '26
https://yosefk.com/c++fqa/
7
u/L8_4_Dinner (Ⓧ Ecstasy/XVM) May 20 '26
Design flaws are not binary. What is a design flaw in one language might be a reasonable decision in a different language. When people start out designing a language, all they can see is the sum of the parts, i.e. the list of features. But a list of features is not a design.
I always go back to Rainer Maria Rilke's "For the Sake of a Single Poem" to explain this:
Design is like that. It comes from a sense of the whole, and a reflection on a sum of experiences of pain and joy.
But if you want to do some reading, there's always Lambda The Ultimate, and Guy Steele's old Lambda Papers, and Ward's wiki: https://wiki.c2.com/
19
u/gofl-zimbard-37 May 19 '26
A general problem is that programmers are afraid of anything that doesn't look like C.
9
u/josephjnk May 19 '26
No, probably for a number of reasons, but not the least of which because there’s not that many objective flaws in most languages. Like yes, an ambiguous grammar is bad, but it’s also fairly surface-level. Most languages with any level of adoption have faced tradeoffs and made reasonable decisions why they will trade some good things for some bad things.
A dictionary of these tradeoffs, or of functionality that would be nice to have but that commonly isn’t supported would be interesting and valuable IMO. Like, the expression problem, type constructor polymorphism, higher rank and impredicative polymorphism, etc. It would nice to be able to say “I want to be able to write programs which can do X”, and then look at the list and see what tradeoffs that will inherently impose on your language.
4
u/mamcx May 19 '26
It will be shorter and more practical to list know good ideas and their context.
is the same that say "only numbers" is better than "reject chars, spaces, ...."
4
u/Norphesius May 19 '26
I feel like if there were a list, it would be hard to separate bias from it. A Java dev making that list is going to put in all of C's UB as flaws, but then a C dev is going to put "Object Oriented" under Java's flaws.
I'm not saying it's all subjective, just that any list like that made by an individual is going to follow that person's bias, and any list built by communal effort to get overrun with people trying to tear down languages they don't like. Even in good faith there will be conflicting "flaws" across languages.
Also, I'm not even sure how useful a list like that would be. It's not like you could just turn it into a checklist of things to avoid in your language design. It might be better to have a baseline or frame of reference for the kind of language you'd want to make first, then try and research similar languages' issues. Better yet, of time allows, get experienced with those languages, and get a good understanding of those "flaws" yourself so you can apply that knowledge to your design.
3
u/Inconstant_Moo 🧿 Pipefish May 20 '26
There's this.
3
u/categorical-girl May 26 '26
You might find Counterexamples in type systems interesting
2
u/WalkerCodeRanger Azoth Language May 20 '26
You won't find any central list because people see it as too subjective and because no one is going to take the effort to summarize across languages. But you can find some information from specific language designers about what they see as flaws in their own language. For example, Sharp Regrets: Top 10 Worst C# Features
2
u/creyes12345 May 20 '26
I remember the old joke about looking at line noise and seeing what it means in TECO. Yes, I’m old.
2
u/LordKisuke May 22 '26
Python's mutable default arguments. not really a bug, but catches almost everyone off guard
the default object is created once when the function is defined, not on each call. makes sense once you know it, but nothing in the syntax hints at this. a
freshkeyword or something similar could help signal "create a new one each time"5
u/GunpowderGuy May 19 '26
My favorite problem is Girards Paradox. When types systems become powerfull enough ( dependent types ) , you can prove things such that false equals true. Restrictions are requiered to avoid this
4
u/Koseph-Jony May 19 '26
Theyve all been solved with Clojure
1
u/rodrigopierre May 20 '26
I don’t think there’s a single definitive list since a lot of “bad” design decisions are really tradeoffs. But searching for things like “language warts” or “PL design antipatterns” will probably get you close to what you want.
1
u/Roo3Z May 20 '26
kinda everything in Java and JS
1
u/Lucky_Trick_5703 May 20 '26
There is no standard alphabetical list of “design flaws” in programming languages. What exists are scattered discussions in papers, blogs, and comparisons. Most of what people call “flaws” are actually trade-offs, not universal mistakes. If you want something useful, it’s better to study common language design principles and recurring pitfalls rather than looking for a fixed catalog of “bad ideas”.
1
u/chri4_ May 21 '26
c++ is the list itself
0
u/onequbit May 20 '26
Programming languages don't have problems, only limitations that people don't like.
24
u/[deleted] May 19 '26 edited May 20 '26
[removed] — view removed comment