top | item 16819672

(no title)

RazrFalcon | 8 years ago

So nothing about ADT, pattern matching, modules, better std, explicit unsafe and cargo?

discuss

order

pjmlp|8 years ago

I skipped over modules, because Visual C++ and clang already have them in some form, it is a matter of getting them standardized in C++20.

Cargo is great, but C++ also has conan and vcpkg, eventually a standard one will emerge.

http://www.klabbers.nl/c/dependency-management-for-c/

Also I do have an issue with Cargo's lack of support for binary libraries.

ADTs, while not as good as in ML languages, at least there is std::variant.

I kind of mentioned explicit unsafe when I refereed to the safety enforced at language level instead of conventions and sanitizers.

Pattern matching is a great feature across all ML based languages, there were already some attempts to add it to the C++ as well.

http://open-std.org/JTC1/SC22/WG21/docs/papers/2016/p0095r1....

https://www.youtube.com/watch?v=HaZ1UQXnuC8

RazrFalcon|8 years ago

Yes. C++ has all of this in a crippled form. But it doesn't mean that C++ in on par with Rust.