News for hackers. Stuff that matters.
Re:C++20 has been approved by pornel on Sunday September 06, 2020 @07:39AM (#24390692)
I think the niche of "more than C, but not C++" is going to be eaten by Rust. It's like C with modules, Vec, String, HashMap, and one standard sensible cross-platform build system.
Re:C++20 has been approved by kccqzy on Sunday September 06, 2020 @12:24PM (#24392430)
Rust has plenty of advanced language features that can entertain the same kind of people who enjoy writing C++ template metaprogramming as a brain teaser.
Re:C++20 has been approved by blub on Monday September 07, 2020 @06:17AM (#24398288)
In practice Go is making inroads in that area. Since Rust has similar complexity to C++ it's not really comparable to C or Go.
Re:C++20 has been approved by pornel on Monday September 07, 2020 @07:02AM (#24398519)
Go is a nice language growing in popularity, but it's not a C replacement.

Garbage collection, big runtime, and non-zero-cost FFI are acceptable trade-offs in many areas of programming, but they are deal-breakers for domains where C (or Rust) is necessary.

Rust is somewhat similar to C++ in the feature set, but not in complexity. Rust's features are more orthogonal, without duplication and backwards-compat warts, and you get hand-holding by the compiler.

Re:C++20 has been approved by blub on Monday September 07, 2020 @07:30AM (#24398650)
C is "misused" for a lot of things and Go is a contender in those areas though.

Technically you could be right about complexity vs. feature set, but from the POV of someone that's using a simple language, the two don't look that different. One does help you avoid certain errors, although whether that counts as hand holding or hand slapping is in the eye of the beholder.

Re:C++20 has been approved by vips7L on Monday September 07, 2020 @09:09AM (#24399182)
I don't know. Rust is still pretty complicated. I'm hoping Zig will have success here as a better C.
Re:C++20 has been approved by pjmlp on Sunday September 06, 2020 @11:24AM (#24391981)
It might, but Rust still needs to grow a matching eco-system.