r/functionalprogramming • u/Voxelman • Feb 29 '24
Question Are "mainstream" languages dead?
I want to know what new languages are currently developed in the last few years, that have the potential to become at least some importance.
Because all new languages from the last years I know of have lots of things in common:
- No "Null"
- No OOP (or at least just a tiny subset)
- Immutability by default
- Discriminated Unions (or similar concept)
- Statically typed
- Type inference
- No exceptions for error handling
All newer languages I know have at least a subset of these properties like:
Rust Gleam Roc Nim Zig
Just to name a few I have in mind
In my opinion programming languages, both mainstream and new, are moving more and more towards more declarative/functional style. Even mainstream languages like C++, C# or Java add more and more functional features (but it's ugly and not really useful). Do traditional languages have any future?
In my opinion: no. Even Rust is just an intermediate step to functional first languages.
Are there any new (serious) languages that don't follow this trend?
View all comments
Show parent comment
2
u/psioniclizard Mar 01 '24
Yea, I love functional programming (it's my day job after all) but a lot of the premise seems pretty opinion based and "I don't like this so I came to these conclusions".
To answer the title "are mainstream languages dead". No. You just have to look at job listening for that. All those newer languages have some of those features because they have proven to work, but none of them (except Rust) seem that close to replacing a "mainstream" language.
Yes, traditional languages have a future. Most code is not new code and people are not rebuilding existing (working) systems from scratch just to use the hot new language.
In a business sense you only rebuild from scratch if it's going to be a real benefit.
In fact I would be willing to bet in 10 years time there are still more job postings for C, C++, C# and Java than there are for most/all of those mentioned languages.
Also functionally programming will not completely replace everything. There are a lot of places where functional programming is not a great fit.