4 ms·
I think it’s reasonable that std library code goes to one extreme of ugly-but-performant while in my own code I can choose something slightly more elegant. Such
by alkonaut 4y ago
I think it’s reasonable that std library code goes to one extreme of ugly-but-performant while in my own code I can choose something slightly more elegant. Such as avoiding a nested function.
So while I agree with some of the points of Rust having a tendency for hiding the what in all the how (and token salad), I think looking at the stdlib isn’t always a good example of idiomatic Rust.
- kramerger 4y agoThis is a very insightful observation! The C++ template library is at times unreadable too. But I do belive that rust is somewhat ugly and more complicated than C++ - for no reason other than a bad syntax design.