What do you think about About C++20 Concepts?

2019-10-22 Thread lili via Digitalmars-d-learn

Hi:
In C++20 Concepts is great idear. but I thinks it is too 
difficult to write.

I like Rust traits simple and elegancy.


Re: What do you think about About C++20 Concepts?

2019-10-23 Thread Per Nordlöw via Digitalmars-d-learn

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