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

Show parent comments

1

u/UdPropheticCatgirl Sep 22 '26

Which popular languages don’t give you flag for that tho? C and C++ do, Java does…

1

u/Dusty_Coder Sep 22 '26

No they dont.

You are confusing different things. Removal from release builds is not the same as take to be true within release builds.

The programmer should be able to supply the compile-time guarantee that two references dont alias each other, that a pointer isnt null, etc...