Re:Deriving Traits in Rust with Procedural Macros
by skywhopper on Thursday January 03, 2019 @06:42AM
(#18814413)
Presumably the comment is not about Rust ownership rules, but about the language feature on display in the article: procedural macros.
Re:Deriving Traits in Rust with Procedural Macros
by TheCoelacanth on Thursday January 03, 2019 @10:22AM
(#18815714)
The are considerably simpler than the equivalent feature in C++ (template metaprogramming).
Ownership and the borrows checker may have a steep learning curve, but are not very complex. The rules are quite simple, the learning curve is steep because most programmers do not typically think about ownership (though they should).
(In my experience in teaching Rust, things like trait impl coherency rules, object safety, and finding a good balance between static and dynamic polymorphism are much harder for students than understanding the ownership system.)