4 ms·
Readability seems to mean different things to different people. You (and many others!) seem to interpret that word as "there's only relevant information and not
by estebank 4y ago
Readability seems to mean different things to different people. You (and many others!) seem to interpret that word as "there's only relevant information and nothing else in sight". Personally I interpret it as "I have all the relevant information available to me in a way I can scan for quickly". Rust has a higher syntactic load, there are more things present to the reader, but it also means that everything the reader might need is always available, and the syntactical patterns are unique enough that it is "easy" (we can argue this point forever) to skip things you don't care about. When I look at type signatures, sometimes I care about the trait bounds, sometimes I don't. Sometimes I care about the lifetime relationship between different arguments and the output, sometimes I don't. Languages that make these relationships completely implicit make it easy to focus on some aspects of the code's behavior, while obscuring others.