Earlier quoted context omitted.
I hate to be that guy, but if you want "C++ but also functional programming" then... Well, then Rust is in fact the language which you're looking for.
If anything the cognitive load of rust is worse than C++
Erlang/OTP 27 Highlights
51–53 of 53 posts
Re: Erlang/OTP 27 Highlights
#52I think I’m going to just break down and learn erlang. I’ve been interested in it for awhile but mostly work in f#. I recently started looking at gleam but I don’t think learning it with no knowledge of OTP is a good idea.
Re: Erlang/OTP 27 Highlights
#53Earlier quoted context omitted.
If anything the cognitive load of rust is worse than C++
Rust is certainly challenging, even copilot finds it difficult to write correct rust, it's fun to see the AI fight the compiler.
It could probably be argued that this is simply acknowledging reality, and that C++ lets you get away with murder if you want to. But maybe that’s what I want.
I think a good feature for C++ would be a “safe” (or “verified”?) block or method decorator that could enforce some set of restrictions on semantics, e.g. single mutable borrow. The problem is that those functionalities are part of the compiler APIs and not standardized.
The Rust compiler is also not standardized, but they can get away with it.