5 ms·
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-pl
by pornel 6y ago
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.
- pjmlp 6y agoIt might, but Rust still needs to grow a matching eco-system.
- kccqzy 6y agoRust has plenty of advanced language features that can entertain the same kind of people who enjoy writing C++ template metaprogramming as a brain teaser.
- blub 6y agoIn practice Go is making inroads in that area. Since Rust has similar complexity to C++ it's not really comparable to C or Go.
- pornel 6y agoGo 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.
- blub 6y agoC 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.
- vips7L 6y agoI don't know. Rust is still pretty complicated. I'm hoping Zig will have success here as a better C.