Originally posted by NobodyXu
View Post
Second, you really think people won't write hard-to-read code in Rust too? The code you show as an example is not something people would normally write even in C++.
I also strongly disagree that it would be better to use template magic in C++ to emulate traits in Rust. I have shown in my posts above that you can perfectly and efficiently emulate traits in C++ with a simple, easy-to-implement and easy-to-read syntax (using inheritance and compiler optimizations). Why the hell would anyone want to use templates for this? This seems very contrived only to try to prove C++ must be harder to understand than Rust even in cases where it really isn't.
Leave a comment: