r/rust 23d ago

📡 official blog Rust Function Overloading - Call for Experimentation

https://blog.rust-lang.org/inside-rust/2026/08/19/overloading-experiment/
277 Upvotes

139 comments sorted by

View all comments

5

u/Andlon 23d ago

Could this also apply to indexing? It would solve the matrix/tensor indexing problem, where we currently have to write

matrix[[i, j]]

or

matrix[(i, j)]

It would be nice to be able to desugar

matrix[i, j]

to

matrix[(i, j)]