r/functionalprogramming • • 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:

  1. No "Null"
  2. No OOP (or at least just a tiny subset)
  3. Immutability by default
  4. Discriminated Unions (or similar concept)
  5. Statically typed
  6. Type inference
  7. 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?

65 Upvotes

105 comments sorted by

View all comments

Show parent comment

2

u/Inconstant_Moo Mar 04 '24

'Map's should not be part of the language.

Why not?

2

u/[deleted] Mar 04 '24

Because Map can be defined by a library. Do not inflate the language unnecessarily.

2

u/Obj3ctDisoriented Mar 06 '24

LOTS of languages support associative arrays as built in types. From an implementation stand point there is no reason you can't make array types inherently be associative arrays, where if the user chooses to make the keys integers, that's there choice. Then you have no loss of generality for "regular" arrays, while simultaneously gaining support for maps without "inflating" the language.