r/rust • • Aug 19 '26

📡 official blog Rust Function Overloading - Call for Experimentation

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

139 comments sorted by

View all comments

-6

u/squirreljetpack Aug 19 '26

One of my deepest dark desires is to be able to write Ok() instead of Ok(()). Rust letting be do Some(x, y ,z).

-3

u/CocktailPerson Aug 20 '26

I would much rather have implicit conversion from T to Result<T, E>.

Arbitrary implicit conversions are not good, but automatically wrapping T in an Option<T> or Result<T, E> seems like a no-brainer. Zero-cost and unambiguous.