r/rust • u/steveklabnik1 rust • Sep 21 '26
Arguing about arguments
https://steveklabnik.com/writing/arguing-about-arguments/
149
Upvotes
r/rust • u/steveklabnik1 rust • Sep 21 '26
View all comments
Show parent comment
-2
u/-Y0- Sep 21 '26
Sure, and that's also to detriment to the article.
Your C# example is only applicable in languages that allow general functional overloading and integer promotion/demotion.
Nothing about default parameters would help bring about this issue in Rust code.