Hacker News new | past | comments | ask | show | jobs | submit login

I strongly recommend just writing a #[derive] line for every user defined type you make. Start off with Debug in there, and you'll find often you already know some other traits that'll be trivially derived for this type, Clone, Default, stuff like that.



Generally I do. My comment isn't about whether my own types are `Debug` but others on top of several other problems.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: