Re:The Git source code audit, viewed as a Rust programmer
by db48x on Tuesday January 24, 2023 @02:12PM
(#34508546)
Ultimately it is because the Rust developers decided that there would be no implicit conversions. In a lot of cases implicit conversions are convenient, but many people feel that the complexity just isn’t worth it.
Re:The Git source code audit, viewed as a Rust programmer
by Sharlin on Tuesday January 24, 2023 @03:30PM
(#34509836)
It’s not out of the question that additional `Index` impls for other integer types could be added to the standard library at some point; the issue is discussed often enough. But it’s not trivial to do because some currently valid code could become ambiguous if impls are added, so some sort of a transition would be required.
This seems strange. Why does Rust not automatically use whatever size index you hand it?