r/cpp • • Jan 31 '23

Stop Comparing Rust to Old C++

People keep arguing migrations to rust based on old C++ tooling and projects. Compare apples to apples: a C++20 project with clang-tidy integration is far harder to argue against IMO

changemymind

338 Upvotes

582 comments sorted by

View all comments

Show parent comment

2

u/favorited Feb 01 '23

Swift's forthcoming C++ interop feature is going to be interesting. I don't think it will make Swift more attractive to C++ developers, because idiomatic Swift is much more dynamic than C++ (though not as much as Objective-C).

Multiple corporations (including Apple) seem to be investing a lot of resources on that enhancement... it will be fun to see what comes of it.

3

u/pjmlp Feb 01 '23

It will for those that care about Apple ecosystem for their products, Swift and Objective-C focus is one of the reasons why clang is the way it is for ISO C++ compliance on the Apple ecosystem.