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/oa74 Feb 29 '24
I won't claim to be too familiar with the various patterns/techniques discussed by u/digadov925; however, it sounds like we're talking about a situation where you have both the type
Tand the typeNullable<T>. To me, this only makes sense if the compiler statically checks that you've addressed thenullcase... at which point, there is semantically no difference betweenNullable<T>andMaybe<T>. If it doesn't check, then it's like a maybe type without exhaustiveness checking... which is obviously a horrible idea, but then we should call the bad idea what it is: "lack of exhaustiveness checking." (rather than "nullability.")By the way, how do you feel about "bottom" values in e.g. Haskell?