News for hackers. Stuff that matters.
Re:Swift 6 by Dylan16807 on Tuesday September 17, 2024 @10:17PM (#41575051)
There's a lot of redundancy and things you probably should never use in C++, though. It's not complexity that needs to exist other than for backwards compatibility.

> Re generics, aren't C++'s virtually the same as Rust's? Especially now that C++ has 'concepts'?

I'm not worried about generics when I talk about template nightmares, that's more about rvalue and const overloads and vararg templates and careful manipulation of SFINAE, all coming together.

Re:Swift 6 by consteval on Wednesday September 18, 2024 @01:59PM (#41583298)
> There's a lot of redundancy and things you probably should never use in C++, though

This is just a symptom of its age. C# has this same problem, too, and it's only getting worse.

Re:Swift 6 by neonsunset on Wednesday September 18, 2024 @02:25PM (#41583635)
C# does have C++-esque issues but the scale at which they affect the language is not comparable. There are really no popular patterns that have become "no, never do that", poorly written code is sort of version agnostic, and even old code, particularly one like in Mono applications from back in the day, plays really nicely with modern runtimes. And the difference in ways to achieve something is almost always of type "remember this required to take 4 steps? now it's one shorthand thing that makes sense in retrospect".
Re:Swift 6 by lenkite on Thursday September 19, 2024 @03:09PM (#41595241)
You don't have any template nightmares after C++ 20 concepts. The error messages improved so much that I thought I was using a different programming language.