Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm sure all these layers are good engineering and provide meaningful safety guarantees, but it sure makes the code harder to understand if you want to see how things are implemented.

Another example, I was trying to see how i64::isqrt is implemented, but first you have to wade through layers of macros



"The standard library internally overuses macros and you probably shouldn't use them that much in your own code" is at least a respectable opinion in the Rust community, I think.


Yep. Heck, I've barely even written any macros at all.


This is just how rust and c++ code is in my experience.


Even C is like that in its most popular stdlib implementation (glibc).


C++ is bc of compatibility with god knows how many standards, but at the end it is simpler than it looks at first sight. The uglification of names in the std lib make it disgusting to read. If only that was removed it would improve a lot.




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

Search: