Re:Why Safety Profiles Failed
by crest on Thursday October 24, 2024 @10:57PM
(#41941856)
Give the proc macro fans a little more time...
[ Parent
| on HN ]
I understand the point you are making, but C++ templates really are a uniquely disastrous programming model. They can be used to pull off neat tricks, but the way those neat tricks are done is terrible.
When a proc macro fails you get an error at the site where the macro is used, and a stack trace into the proc macro crate. You can even use tools to expand the proc macro to see what went wrong (although those aren't built in, yet).
Debugging a proc macro failure is miles and above easier than debugging template errors.