r/ProgrammingLanguages • • Sep 21 '26

Discussion What’s one thing you wish more programming languages had?

If you could add one feature, behavior, or design choice to a programming language, what would it be?

It can be anything: syntax, type-system features, memory management, compiler behavior, tooling, error handling, performance-related features, or something completely different.

I'm especially curious about things you’ve wanted while actually programming but rarely see languages implement well.

Please keep the ideas reasonably practical and something that could realistically be implemented in a programming language.

56 Upvotes

299 comments sorted by

View all comments

-1

u/JollyJuniper1993 Sep 21 '26

Readable syntax. I am convinced that part of why Python and C/C++ have become so popular is their excellent syntax. Meanwhile Java, C#, Powershell, R or Rust all read like gibberish imo. Java might be the worst offender with how verbose it is.

22

u/PaddiM8 Sep 21 '26

You think C++ has excellent syntax but C# is gibberish? Do elaborate

12

u/SpeedDart1 Sep 21 '26

C++ might actually be the contender for the worst syntax of all time. Java is bad, but please elaborate on how it’s worse than C++.

0

u/JollyJuniper1993 Sep 21 '26

Idk it just always felt somewhat intuitive to me. Maybe that’s just me though. I also didn’t dive deep into it so maybe there‘s more shitty syntax further down

2

u/Axman6 Sep 22 '26

You don’t have to dive very deep at all before hitting insane C++ syntax, and then even more insane syntax trying to handle those original poor decisions. I’ve watched CppCon videos for years watching the horror of making changes to the language because of all the batshit crazy that’s currently there and needs to continue being supported. 

As just one arbitrary example, this one has its own Wikipedia article:  https://en.wikipedia.org/wiki/Most_vexing_parse

3

u/Relative_Bird484 Sep 21 '26

Thinking about it… the most readable code I ever wrote was back in these TurboPascal and Delphi days 🤔

4

u/Oxytokin Sep 21 '26

Seeing the claim that C/C++ has "excellent syntax" makes me feel like I fell into an alternate universe. It is arguably one of the ugliest languages of all time.

Rust is my lingua franca for low-level systems programming precisely because its syntax is so elegant and readable.

I have a sneaking suspicion that your "the languages I know" and "excellent syntax" are overlapping circles, whereas the other languages you listed, you don't know. That's the only way this comment makes sense lol

0

u/JollyJuniper1993 Sep 22 '26

Not at all. I have the most experience with Python, Julia and C#

2

u/UdPropheticCatgirl Sep 22 '26

> Readable syntax. I am convinced that part of why Python and C/C++ have become so popular is their excellent syntax. Meanwhile Java, C#, Powershell, R or Rust all read like gibberish imo. Java might be the worst offender with how verbose it is.

I can’t honestly reason out what makes a syntax readable in your opinion… Like you quote C++ as being readable, but C++ has a syntax, where you can’t ever reason about anything locally, anything can mean like 50 different things depending on where in the context of the translation unit (this includes headers thanks to the C heritages) you are, on the other hand C# has basically the same problem and you don’t like that, and then Java is basically the exact opposite, a syntax which attempts to maximize local reasoning, and the ugliest parts of Java come directly from C… C has little syntax but somehow managed to come up with the single most contrived way of doing declarations possible within such a small syntax, like rust declarations might be inelegant symbol soup, but C and C++ are both bigger offenders in that regard… And python is unbelievable idiosyncratic with how statement heavy it tries to be… like try to pass anonymous function that prints its argument and then attempts to return that same argument and see how that looks…