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
4
u/[deleted] Feb 29 '24
People tend to be "cyclists" or "progressives" when it comes to their understanding of the history of programming languages. Will old ideas of programming languages come back in some form, or do we collectively advance and discard bad ideas? I think OP is clearly a progressive.
You mentioned control constructs like exceptions, or more generally CL-style conditions, but another good barometer is dynamic typing. Most "progressives" think that dynamic typing is a mistake of history and will never be popular again.
I'm old enough to remember Ruby blew up because, in part, Java and C++ had become baroque to the point where productivity suffered by orders of magnitude. As we discover more elaborate constructs for types, I often wonder if we'll someday treat "a monad is just a monoid in the category of endofunctors" with equal derision to "abstractMetaBeanFactoryFactory" of the mid 2000's.
The Peano postulates are the most beautiful and fundamental construct of arithmetic, but we don't actually formulate every day arithmetic (like accounting) in relation to Peano axioms. Some days I feel the same way about things like functional effects and linear types.