www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - What do you think about About C++20 Concepts?

reply lili <akozhao tencent.com> writes:
Hi:
     In C++20 Concepts is great idear. but I thinks it is too 
difficult to write.
     I like Rust traits simple and elegancy.
Oct 22 2019
parent Per =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
On Tuesday, 22 October 2019 at 14:30:32 UTC, lili wrote:
 Hi:
     In C++20 Concepts is great idear. but I thinks it is too 
 difficult to write.
     I like Rust traits simple and elegancy.
Andrei Alexandrescou's keynote from CppCon 2018 [1] explains why D's existing template restrictions together with `static if` are superior to C++20 concepts. [1] https://www.youtube.com/watch?v=tcyb1lpEHm0
Oct 23 2019