Re:Rust can be difficult to learn and frustrating, but it's ...
by MarkovUnchained on Tuesday October 23, 2018 @01:26AM
(#18280911)
C++ has ADTs from C++17 and will have typeclasses from C++20. Templates with type traits are effectively a superclass of type parameters anyway.
[ Parent
| on HN ]
Re:Rust can be difficult to learn and frustrating, but it's ...
by Rusky on Tuesday October 23, 2018 @08:04PM
(#18288569)
C++'s ADTs are std::variant, which is horrific.
C++'s type classes are concepts, which are hardly more than syntactic sugar over SFINAE.
Neither can really compare to Rust's enums or traits.