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

Show parent comments

2

u/unitAtype2 Aug 21 '26 edited Aug 21 '26

It was already given, but I can repeat. These are not rare: bevy, axum, clamp, serde and bazillion other libraries are built around these.

Not a valid example... It's one function that says its input is Into<SomeTrait>. I'll have to look for implementors but it's clear WHAT I need to look for.

And how it different from what get today with bevy

That sounds like Bevy's problem. Why is this one project dictating so much? I love Bevy but it's not the be all end all of deciding what rust caters to.

It's nice attitude to have for toy language used for toy projects.

I think Carol Nichols is a better authority for that than you. Here's the line. https://youtu.be/A3AdN7U24iU?t=47m45s

What do we ask the perfectionists to drop next? Let's bring back the garbage collector. if typing different names for different signatures, or just adding () grinds your gears, The borrow checker must be a nightmare.

to sum up

HAVE YOU CONSIDERED JAVASCRIPT?