5 ms·
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
by assbuttbuttass 1y ago
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
- ozgrakkurt 1y agoThis is just how rust and c++ code is in my experience.
- germandiago 1y agoC++ 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.
- Narishma 1y agoEven C is like that in its most popular stdlib implementation (glibc).
- ameliaquining 1y ago"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.
- steveklabnik 1y agoYep. Heck, I've barely even written any macros at all.