logoalt Hacker News

sunshowerslast Monday at 6:06 PM1 replyview on HN

Note that while C++ templates are more powerful than Rust generics at being able to express different patterns of code, Rust generics are better at producing useful error messages. To me, personally, good error messages are the most fundamental part of a compiler frontend.


Replies

wakawaka28last Monday at 6:12 PM

Concepts make it possible to generate very clear (even user-friendly) template errors.

show 1 reply